fixed rendering of html files after setting the templateRoot manually

Thanks for your awesome module, it makes our work way more easy.
We generate the models via json-files and feed it to your module. Each json-file needs a different rootPath, so we had to fix this. :)