fix JENKINS-16047

wrapping ByteArrayOutputStream > StreamTaskListener > PrintStream into a PrintWritter seems to introduce some flushing issue that prevent the stacktrace to be dump on syntax error in scriptler
as PrintStream API is fine from GroovyScript simplest fix is to avoid this N-th level wrapper