avoid call to Open3.capture3

This call is broken on JRuby.

Fixed #25