Added sanity check for config file