Flow switch for fluid systems