Avoid usage of deprecated .tmpdir

lizmat++ for making the deprecation warnings so awesome