updated template and script path to use env var