Detect major OSX versions.

Affects defaults for Growl and NotificationCenter before and after MountainLion (8).
Affects top menu icon on Yosemite (10) and higher.