swap platform.system() for sys.platform; #1263