Make the CLI class create missing directories in the path to the output file automatically.