Improved jmx_query to support stdin streaming input