Fix daemonization on jruby