Use $PWD when $TMPDIR isn't set

[#76624872]

Signed-off-by: Michael Fraenkel <fraenkel@us.ibm.com>