Allow input of output directory name

Add the ability to determine the output directory when running the processor.