Updates the config file