Add TMPDIR hack to workaround travis build issue