$MOJO_TMPDIR

$MOJO_TMPDIR was broken since 3.77.

Here is the fix and a test.