Fix std stream with tee command