Fix the updating of `:git`, `:svn`, and `:hg` dependencies when updating all pods.

Closes https://github.com/CocoaPods/CocoaPods/issues/2859.