Fix ThreadDeath error with jruby by using backticks exec