use the correct variable name
simpler way to note matches for ahead/behind/conflicts in status
correct regex pattern for matching repos that are ahead