#45 fix for getting branch name from payload, did not work correctly for tags