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

...cation. needs better reporting of the error.