nabcos/devhelpers — pull request #4 by peterlynch (2012-08-24 12:05:11+00:00)
Title: improve script location detection and default args

borrowed from http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in