bash: git_avg: don't count last empty line