Look up java.io.tmpdir for the temporary dir

The TMPDIR and TEMP environment variables take precedence, but if
neither are set, fall back to asking the runtime via the java.io.tmpdir
property.