hacking tmp dir creation