Spec for #2977: Improve spec for IO.write on FIFO

Remove unneeded conditional
Use IO.read instead of `cat`