fixed issue in format-patch command, which checked for wrong number of params
Merge pull request #498 from volaya/format-patch

fixed issue in format-patch command