Fix recognition of windows platforms

"win" in sys.platform triggered on darwin (os x) platforms. Fixed.