Higher order QCD corrections to the three-jet cross section: Bare versus dressed jets