use pushd/popd rather than cd in quake3 build script