Update 'dirty' logic

"nothing to commit (working directory clean)" changed to "nothing to commit, working directory clean" changed in a git update a year or more ago and broke the dirty logic.