update code to handle branch name with plural slashes