Fixed how to check the OS type.
Merge pull request #173 from hyoshida/hotfix/ostype_checker

Fixed how to check the OS type.