upgrade ruby binary to 2.0.0-p247.

also add quick hack for rails-3.0.x.
stop to install rake to the root gem path. Ruby 2.0 bundles it.