Or: Unsolicited career-advice on the internet
If you ever need to perform operations relative to the path of a shell script, the following snippet should be useful:
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
This will give you the absolute path to the script in most cases (see this...