Tests: Fix OS X version check to use component-wise test

Otherwise 10.10 may be considered to be less than 10.4 and the
tests for CPack will not run.

Reported-by: Sean McBride <sean@rogue-research.com>
Merge topic 'tests-osx-version' into next

f53a3340 Tests: Fix OS X version check to use component-wise test