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