git: install remote helpers for hg and bzr

Closes #25032.