Support branches with slashes

This pull request adds support for branch names that contain slashes.