[fix] work with pipe vs bigpipe