Truncate stdout/stderr in error response from packaging script

Signed-off-by: Tom Xing <xingzhou@cn.ibm.com>