Bug 1109630 - Improve and Refactor grunt system

If you parse config at the start, then this would be:

grunt.file.write(configFile, JSON.stringify(config));