Add output method to every hook file which merges stdout and stderr