Fix shell_out on JRuby