Almost have piping working.

Single commands work:
- ls
- cd

Piping is working:
- `ls | grep REA` will return "README.md"

Not working:
- after executing command with pipe, it segfaults with any commands
  afterwards
- the output is buffered to 1024 bytes and read