Fixing finding the templates path.