Fix templates script path