Ensure commands exist before doing anything.

Uninstall any previous git packages. This way we're sure we are
installing the one from the ppa.