Changed to non-deprecated method of determining current OSX version.