Fix file detection for Win32 and tests

Please ignore changes to setup.py and setupinfo.py

* win32 paths (ea c:\) are detected as schemas by urlparse on win32 …
* adding 'file://' to path is not portable to win32 ('file://c|/') is.
* tempfile.NamedTemporaryFile requires special handling for win32 see: http://bugs.python.org/issue14243