Fix windows versioning

Need sys to check platform.