Fix TEMPLATE_PATH reference

change reference from HOMEDIR to REPO_DIR