swap platform.system() for sys.platform

Swap platform for sys for #1263