Now replacing descriptors using dup2, instead of dup or close and open file. Fixes potential issue where stdout and stderr might overwrite each other, due to being from different open calls.
Now replacing descriptors using dup2, instead of dup or close and open file. Fixes potential issue where stdout and stderr might overwrite each other, due to being from different open calls.

BD2KGenomics/slugflow,benedictpaten/jobTree,harvardinformatics/jobTree,BD2KGenomics/slugflow,BD2KGenomics/toil-old,cooketho/jobTree