Add function for writing configuration files back to disk from memory.