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