Fixed parsing of OS version on OS X