removed dependency on pushd/popd in update script