Ensure that libgit2 is removed if outdated.