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.