Properly handle git branches with slashes in tryclient.

buildbot try --vc=git breaks when branches contain slashes. This patch fixes this by stripping only proper (i.e configured in current git repo) remote names. This is done using `git remote` to get all configured remote names and stripping them from the branch.