[build-tools] Fix `idb_companion` existence check (#4217)