parse_git_dirty() support for Git 1.6

Git 1.6 does not support the "Git status -s" option, so directories were always show up dirty on systems stuck on older versions of Git.  This is a lightweight patch that tweaks the if/else logic in the parse_git_dirty() function to support for Git 1.6 while retaining support for newer versions.