Use a temporary file instead of relying on system pipe buffer size

This is in reference to issue #220.
This dependency was removed in 1725cc629ad8fbc9f25e27ebf621495ec8ae932a.