format-patch: construct patch filename in one function