[WFLY-2899] Capture System.out and System.err before jboss-stdio capture them

Captures ```System.out``` and ```System.err``` in the main entry programs before jboss-stdio captures the streams.