A couple of fixes to let proc_open run correctly on Linux; cleaned up a few debugging comments;