TestHelper: Use system independent tempdir

Usage if tempfile.gettempdir() should be preferred over /tmp for
platform independency.