Thanks! Checking `TMPDIR` is definitely worth it. 
If then it still fails I'm fine letting the auto-update fails altogether... `mkdtemp` would require native bindings etc... which is an overkill here IMHO