cwd=$(dirname `readlink -f $0`)

Get the current working directory.