fix bug where TemporaryDirectoryForAction() would fail while under test.

While under test, TemporaryDirectoryForAction() always returns the same
directory (instead of a random one).  This works fine on your first test
run, but will fail on the second test run because the directory already
exists.

When under test, let's ignore that failure.