Issue #706: Use tempfile.gettempdir() and not the TEMP variable. It was failing with Wine.