[PATCH 5.17 327/772] perf tools: Use Python devtools for version autodetection rather than runtime