Fixed bug in checking OSX_TOOLSET