Minor fix to detect the OSX version.