Fix windows path seperator for templates

`rmExt` contained code to fix path separators, but it wasn't being used for templates. This fixes the path separators specifically for templates.

Having this in two places isn't a great idea, but neither is fixing path separators in a function that claims it's only removing file extensions.