Make it cleaner to detect the major OSX revision