Revert "Make temporary directory selectable."

This reverts commit 26459741c513c12b295bc9e02037f6ea68413f39.
Revert "Eliminated use of pushd/popd."

This reverts commit ae26b5ab25b07bfce59b0ba62d56236afd5b2476.