Refactored getTemplateIncludePath