Fix problem with redirecting output

Tests run fine, check for java6 compatibility is positive now.

Change-Id: Id45639fc9fc768596d3535eb3d0ca1dca835212a
Signed-off-by: Denis Knoepfle <denis.knoepfle@sap.com>