Make sosh working with pipes.