[PATCH stable 6.6 ] lib/buildid: Fix build ID parsing logic