Write config.xml back to file