Added support for alternative patch output directory

Closes #9