Make command line git dirty state work with git v1.8