Bugfix for wrong using of os.platform