perf tweak
correct parsing of patch's exit code ( $? != 0 is most probably error)