Use $ENV{TMPDIR} if defined
Merge pull request #14 from dex4er/porting/android

Use $ENV{TMPDIR} if defined