upgrade ruby binary to 2.0.0-p247.

also add quick hack for rails-3.0.x.