Check to see whether fork() is implemented, fix #2

First check for whether the method exists, then check for java and
macruby.