Fix for permissions of config file after saving.
Merge pull request #1862 from michael-e/fix-config-permissions

Fix for permissions of config file after saving