builder: fix wrong cache hits building from tars Upstream-commit: 8cf42d3ad805467be407962f902156a3834062ff Component: engine