split shell pipe into two steps, so make can see the ferm exit status