Added fix for scanning on Windows

Fixed scanning on Windows, thanks to RuedigerMoeller. Fixes bug #1.