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.
Merge pull request #2 from r0b5t4/master

When running script from source tree, support arbitrary working dir