Removed unnecessary pushd/popd in script.