Use os.platform rather than os.type