Check $ENV{TMPDIR} before other paths

On Android:

```
$ prove -v -bl t/local/get.t 
t/local/get.t .. 
1..0
ok 1
skipped: (no reason given)

Test Summary Report
-------------------
t/local/get.t (Wstat: 0 Tests: 1 Failed: 1)
  Failed test:  1
  Parse errors: Bad plan.  You planned 0 tests but ran 1.
```

It is because this test assumes that $TMPDIR is one of hardcoded dirs which don't exist on Android.

I suggest to use $TMPDIR before other dirs as workaround.