This depends on the cwd of the invoking shell. It's nice to avoid that with dirname. Here's an example: http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in