Get Git branch name fixed (compatible with 1.7)