fix error related with checking current OS

Current check platform condition returns false even for Mac. I've fixed it.