Fix the way config files are saved