move dependency install for root install BEFORE dependency checking stage.