GRAILS-10206 fixed line endings
GRAILS-10206 rewrite the generated file with the correct line endings to avoid mixing Unix and DOS endings