Retry git commands

We should retry `git submodule` and other commands
Remove retries when they're not useful
Merge pull request #216 from travis-ci/ha-bug-gh_ci_2061

Retry git commands