make pidfile optional in configuration file