Used sys.platform instead of platform.system()