pack multiple commands in a pipeline into larger strings.

fixes #495