use regex to check for ruby version when configuring passenger

this should make it a little bit more generic also for other ruby 2.x
versions