Tweak OS version parsing on OS X.