[CB-4809]: Check that dependencies' IDs match the <dependency> tags