fix #19, replace pushd, popd with cd