Allow specifying a custom patch command.

This is the proposed fix for http://trac.buildbot.net/ticket/2290

There are no tests and there is no documentations.

Please check if this is the way you want it fixed.

Any advice about how to add tests and documentation is much appreciated.

Thanks!
Adi