Create the output dir if it doesn't exist.