See comment in your other PR about using ``gettempdir`` here.