fix: use __dirname in templates default path