completion: improve ls-remote output filtering in __git_refs_remotes()