Support to get the templates path when Spress is used as package
Fixed the templates path when Spress is used as package