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.
I don't get it. Won't this old piece of code enable logging? You're reopening it with the file handle, no?