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.
Merge pull request #20 from carlosmn/tmpdir

Look up java.io.tmpdir for the temporary dir