redirect System.out and System.err to NullOutputStream when capturing output in GradleUtil