Enabled running tool scripts from anywhere.

Fixes #9
dirname ${0} should print the enclosing directory for the script without you having to do the cd or pwd calls.