Auto diverter valve