Use a jruby compatible method of suppressing subprocess output

Open3 does not work with JRuby currently. See http://jira.codehaus.org/browse/JRUBY-5710.