Ensure config_file is set appropriately.