Move error handling for missing config file to where the file is read