Support for GHE and multiple remotes

Change-Id: I87cab44e86ccf35480a4db02f0e0e4089caf970b
Shorten line, fix fallback array formatting

Change-Id: I911e69a115bf9c6f5e029626480aa83b63f2c09e
Merge pull request #23 from ccarpita/add/ghe-support

Support for GHE and multiple remotes