Added pushd/popd for archive.rt command