* fixed cli test
* stdout and stderr redirect from php patches
+ added mark option to mark patch as installed