git-version-gen: skip "-dirty" check when appropriate