Moved check_for_pidfile() after create/open_config_file()