Issue #706: Use tempfile.gettempdir() and not the TEMP variable.

PyInstaller was failing with Wine.