When running script from source tree, support arbitrary working dir

Previously the script only ran from the root of the source tree
when using unpackaged. Now it can be invoked from an arbitrary cwd,
the skeleton and template files are resolved relative to the
script directory.