Improve code style for os judgement.
Merge pull request #10 from Layzie/judge_os

Improve code style for os judgement.