Clean up specs a bit
Fix failing spec

The earlier introduced attempted fix did introduce a bug in correctly
maintaining the output buffer of a pipe. This resulted in carriage
returns that were not recognized and caused weird printing behaviour.