Switch to popen to fix Jruby builds

- Process#spawn returns the incorrect pid under JRuby on linux. See:
https://github.com/jruby/jruby/issues/1033 and
http://jira.codehaus.org/browse/JRUBY-4908 for details.