Add more details to errors in config_classname and config_directory