Uses npm root to get to the node_modules folder needed by getTemplatesPath. Needs some refactoring
Refactors the messy getTemplatePath code