Fix issue with normalizeTemplateName on Windows

The function "replace" only replaces the first occurrence of the string passed in parameter, therefore for templates containing more than one sublevel, only the first backslash is replaced, resulting in templateCache's keys not having the right identifier.