Don't use ./tmp

Use system tmp directory (that is to say $TMPDIR if it is set).