Changed write to use grunt.util.linefeed line endings.

This change lets Grunt (or user configuration) decided what line ending
to use in the saved file.