This could use some quoting, there could be spaces. PWD="$(dirname "$0")"

Also, what's the `;` for?