propperly popd to the previous dir