magit-wash-branch: deal with remote names that have the same prefix

Close #1319.