Adjust foreman and callback signal handlers for JRuby.

Foreman 0.62.0 still requires posix-spawn, which won't work in JRuby
unless the (now deprecated) C extension support is turned on.
Running processes in shell is less of a headache than Ruby.

Or, at least, making this work across different Ruby platforms is a real
pain.
CI testing.