Fixed GIT dirty directory detection.
Bugfix