get path of script to search for templates