add code to judge the type of OS