fix MacOSX version detect