bug fix in logic for determining dirty status of a git branch