Using git diff to check if we have a clean working tree state.

The old method would brake if the git output is translated.