Fix chmod problem in dumper in rose.config

Bug introduced in #1067. Use of temporary file to dump configuration
means that the result file has only user read+write permission. This fix
will create the configuration file with the correct permission.
Merge pull request #1095 from matthewrmshin/fix-rose-config-dump-chmod

Fix chmod problem in dumper in rose.config