Fixed error when pidfile variable is not set in config file.