allow git.branch to return accurate information from Jenkins/Hudson jobs
add unit tests
Merge pull request #80 from if6was9/master

allow git.branch to return accurate information from Jenkins/Hudson jobs