Make git PS1 more flexible: configurable upstream remotes

Allow an env variable to be specified that tells the git
PS1 script which remotes to check for ahead/behind information.

Remote order matters: the first matching remote is used.