Fixed erroneous check for OS/X