Better dependency diff detection