Screw conveyor with diverter valves