format-patch: fix diff format option implementation