Allow template build script to be run from outside its directory