Add --output_dir option: writes a single flat file for each input assembly.