Removed other wrong forking code
Fixed pipes, now they should work properly and with no race condition
messups.
Fixed > and < operations so that they opened and closed their fd's at
the proper time. This neatly fixes a couple of rather odd bugs. Also
fixed up the flags when writing files.