Tweaking git "dirty" check to account for multiple git versions.