Use System.console() for stdout if available