Fix stdout/stderr issue: now all works fine on Linux. Windows still directly shows Octave output