Generating output directory