Fix crash when a branch name starts with '/'