templates.js broken on Windows Server 2008

This was failing to load any templates on Windows Server 2008 with the old code. I've modified the code block to get relative templates which fixes the error on Windows Server.