Fixes wrong tmpdir creation.