Added pushd and popd as well geteuid