Organized inside of driver script a little.

Creates the output directory if it doesn't exist.