Add support for shell.env, PWD, TMP, and tempDir, with tests