ensure config file is a file and config_files is a directory