plugins/ruby: fix incomplete env setup

Ruby 1.9.x has a small bug that doesn't set up the whole env properly when doing it like we do. This means that some things related to threads/mutexes aren't available.

See: http://www.ruby-forum.com/topic/4408161