fix a bug where with varying git remote -v output