Fixes bad branch name info based on changing job property. Sets build action earlier then take this more accurate info to evaluate the branch name info.