Strip trailing newline from command output

This commit brings sos-3.x behaviour into line with earlier
releases and produces captured command output that is consistent
with typical shell redirection use.

Resolves: bz971420