FindPython: fix regression on version validation
In !4338 (merged) we accidentally broke the python executable version validation when the "LOCATION" strategy is used with the plain FindPython
module. Fix the logic and add test cases covering those combinations.
Fixes: #20465 (closed)
Backport: release
Topic-rename: FindPython-version-validation-fix