Updates the config file.