Fix reading from a pipe "|"

Pipes don't support mmap(), so sendfile was failing when reading from
them. So the simplest solution is to read()/write().