Bug 1065222 Change to correct directory

This script fails if run from anywhere other than its parent directory. Add in a pushd / popd to make it runnable from anywhere. This makes it simpler to run from other scripts, e.g. from a continuous integration environment like Travis CI.