Sorry for my late reply,
I tried the setTempDir() method, but it seems you are using 2 different tmp dirs, one is correctly set after this call, the other one is preset to the default "/tmp" dir.
There are 2 different get methods for temp dirs, but only one setter.
When time is there, I will try adding a second setter.