Update a config file