Fix build on windows

I was getting build failures due to carriage returns in the templates (I'm using default git setup on windows where it checks out files using \r\n, and checks them in using \n).