Write output, error of mahout jobs to file.