bugfix, allow templates paths to have more than one slash in windows environment