bugfix: pidfile creation