added change to the directory of the script

this will allow you to invoke the script from an other location.

used pushd/popd so nothing should break.