added path checking method, beginning code to handle the .glue-template local template file