Corrected check for OS X

Change-Id: Ie82304dcc0fd4996841713920b5fe54980cdfff8