fixing up the output dir