Reformat settings file