fix z, use pushd and popd in .update.sh