FindPython: enhance robustness of version extraction from library name

Fixes: #21105
1 file changed