DRYing up how github account is determined from `git remote -v`

(and fixing a bug that was caused by copy/pasta)

Signed-off-by: Manolo Gutierrez <m.gutierrez@modcloth.com>