CONFIG REWRITE: actually rewrite the config file, atomically.