Fix bug in returning git status.

TBR