[BUGFIX] Support for templateRootPath not being in an extension

Fixes: #215
Merge pull request #217 from NamelessCoder/rootpath

[BUGFIX] Support for templateRootPath not being in an extension