JRuby

IO.popen doesn't wait until a process ends but returns immediately