[cli] fix 'dirty_state?' to work with git older than 1.8
Merge pull request #210 from oppegard/master

[cli] fix 'dirty_state?' to work with git older than 1.8