Get install dir from running exe
Keep backup of settings file. Do write under lock.
Lock just in case someone will call EnsureSettingsAreUpToDate outside the lock.