[PATCH 5.18 383/879] perf tools: Use Python devtools for version autodetection rather than runtime