Wrap shell command in a script as a workaround for https://github.com/jruby/jruby/issues/1947.