[PATCH 6.1 95/96] kbuild: Make ld-version.sh more robust against version string changes