Fix compilation of subtemplates on Windows

The templates were generated with OS path separators, e.g.
templates['main\sub'] = template( ... )

This fix changes the template separator to a forward slash:
templates['main/sub'] = template( ... )