[internal] jvm: remove use of `sed` in runner script (#13847)
[internal] jvm: remove use of `sed` in runner script (#13847)

https://github.com/pantsbuild/pants/commit/f6a46d7ff59454082a307b76f2db746cab50bd69#diff-76ff768034c27d10ead2f3f5964157f511dae025e790ec007ef88239da6e4d57R148 breaks on systems where `sed` is not at the exact path given in the script.

Let's use bash pattern substitution syntax. It works even if there is a `/` in the replacement string:

```
$ args=( "FOO/bar/ha"  "FOO/hello/world" )
$ echo "${args[@]}"
FOO/bar/ha FOO/hello/world
$ echo "${args[@]/FOO/BAR}"
BAR/bar/ha BAR/hello/world
$ echo "${args[@]/FOO/BAR/HA}"
BAR/HA/bar/ha BAR/HA/hello/world
$ repl="/BAR/HA"
$ echo "${args[@]/FOO/$repl}"
/BAR/HA/bar/ha /BAR/HA/hello/world
```

[ci skip-rust]

pantsbuild/pants,pantsbuild/pants,pantsbuild/pants,benjyw/pants,benjyw/pants,benjyw/pants,benjyw/pants,benjyw/pants,pantsbuild/pants,benjyw/pants,benjyw/pants,pantsbuild/pants,pantsbuild/pants,pantsbuild/pants