git + gitflow compatibility

Gitflow, and indeed git branches generally often have forward slashes in their branch name. For example origin/develop or feature/my-feature. Sonar does not accept branch names containing a forward slash as being valid. This pull request contains code to make branches such as the examples mentioned compatible with Sonar by substituting forward slashes for hyphens.