Fix remote branch grep

The grep to filter remote branch was faulty. From "remotes/origin/master" it used to get "remotes/origin" instead of "origin/master".