Clone "user_settings.json" before overwriting

My computer crashed I believe while Stonehearth was writing to the configuration file. Because of this, I have a solution which might work to help avoid or at least provide a backup for Stonehearth backup files. When overwriting the Stonehearth JSON files, the game should first create a backup file (something like the Linux install -b tilde at the front works fine, I suppose?) and make sure that the two files match (hashing algorithm could work for this) before writing the new configuration file. If the game finds a corrupt user_settings.json, it should then try the backup version.