use pushd/popd

thanks Subutai