Now correctly names the output directory.