Use \n, rather than \r\n, for scripts in templates

Addresses #26 for existing templates; before the issue can be closed we
need a permanent fix via the build process.