Create result_dir if it doesn't exist

On a clean system, Export needs to be able to write results even when
the target directory does not exist.