Improve repo detection heuristic

If there are multiple github repos, the existing logic just takes
the first one output from `git remote -v`.  The new logic
checks for `origin` then `github` then falls back to the original logic