Create path (if necessary) for output files.