Fix regex matching for branches with slash