Proper version comparison on OS X

Update the version comparison to compare properly to work on versions
greater than 10.9.