cf-upgrade should not close STDOUT of all forked commands

Now both STDOUT and STDERR of forked commands go to STDOUT and STDERR of
cf-upgrade. Previously it was just closed and e.g. dpkg was failing
because of that.

Modify the test scripts to actually test that.
Merge pull request #1821 from jimis/cfupgrade

cf-upgrade should not close STDOUT of all forked commands
sys/sysinfo.h needs to be included before sys/sysctl.h

Redmine 6328. Bug in old glibc, found on debian 3.1.
Merge pull request #1823 from jimis/redmine6328

sys/sysinfo.h needs to be included before sys/sysctl.h
Redmine #5148, #5206: uptime is no longer failing with latest fixes.
save only global processes on global zone ps
Merge pull request #1811 from MatthewCattell/solaris-filter-by-global-zone

save only global processes on global zone ps