changed output directory option: now, if -o <out_dir> is provided, it does not create a directory with the course name