Handle \ on Windows, normalize to /

The templatecache url should be normalized, otherwise things will fail depending on which os you use to build the templates.

Wasn't sure about the best way to test this, as it relies on setting `path.sep` to `\`. Might have time to look at it later this week.