This is an old revision of the document!
Simple, straight forward:
cd "$( cd "$(dirname "$0")" >/dev/null 2>&1; pwd -P )"