fixed issue when the config file does not exist and the dirty flag is never set