Determine branch name more reliable (#907)
Determine branch name more reliable (#907)

* Made some changes to determine branch name more reliable (it may contain slashes now).

* Determination of branch name more reliable, as per comment on PR #907

thaim/ansible,thaim/ansible