Bash shell redirection for java.io.Console fails