fix: check if output directory exists before determining results file location. needs better reporting of the error.
Merge pull request #558 from satra/fix/batch

fix: check if output directory exists before determining results file lo...