[PATCH 5.15 143/144] kbuild: Make ld-version.sh more robust against version string changes