fix git-patch detecting