Updated logic for Mac OS X version checking to be compatible with Mac OS X 10.9 (Mavericks)