Retry git commands

We should retry `git submodule` and other commands