Fix saving of the config file in SWAT; [#5516].