Fixing temp dir creation