[infra] Update bad_build_check to work with some edge cases.
[infra] Update bad_build_check to work with some edge cases.

robertswiecki/oss-fuzz,robertswiecki/oss-fuzz,robertswiecki/oss-fuzz,robertswiecki/oss-fuzz,robertswiecki/oss-fuzz,robertswiecki/oss-fuzz,robertswiecki/oss-fuzz,robertswiecki/oss-fuzz,robertswiecki/oss-fuzz,robertswiecki/oss-fuzz,robertswiecki/oss-fuzz