Only activate the stderr/stdout redirection in debug mode

ImageJ 1.x' debug mode can be toggled under Edit>Options>Misc...

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>