Use fd's correctly as pipes

No longer misusing channels...