In DummyPty(), only open pipes when necessary. (On OSX we were quickly over the max open file limit.)