Made built-in pidfile optional