use sys.platform instead of platform.system
Merge pull request #1 from m0mchil/master

Upstream update