depends: fix major regression after d546191dc.
depends: fix major regression after d546191dc.

Broken hash logic caused all depends on some platforms (osx at least) to end up
with the same build-id. Without this fix, nothing will be rebuilt when recipes
or dependencies change.

Rebased-From: d57b303e1e5b3fc31da0769b14b01fdcc19b1f7a
Github-Pull: #5586

Crowndev/crowncoin,Crowndev/crowncoin,Crowndev/crowncoin,domob1812/crowncoin,Infernoman/crowncoin,domob1812/crowncoin,Crowndev/crowncoin,domob1812/crowncoin,Crowndev/crowncoin,domob1812/crowncoin,Infernoman/crowncoin,Infernoman/crowncoin,domob1812/crowncoin,domob1812/crowncoin,Infernoman/crowncoin,Infernoman/crowncoin,Crowndev/crowncoin,Infernoman/crowncoin