Old-style test for system(list).
Fix system() output truncation bug.

Replace NULs with SOH to restore the old behaviour of get_cmd_output().