Fix bug when branch name contains slash.