Refactor Xcode/CLT version checks
gphoto2 2.5.2

Closes #19954.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
MacOS.version in case statement doesn't work with ranges
WordNet 3.1

Closes #19473.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
doctor: remove stale OS version check

Closes #19959.