Use the global $tmp variable.

  We now don't use /tmp explicitly.  Instead we use
 $TMPDIR, or $TMP, then /tmp if neither is set.
  Use our tmp variable for message-filtering.

  This means we use $TMPDIR, $TMP, then /tmp if neither is set.