replace pushd/popd use with cd