Handling absence of os.environ key and refactoring populating config_file list