use Open3.popen3 to fix hanging IO in JRuby 9k