Grab the version of ruby being installed for the Passenger root path.
Tidying up a bit...
Using passenger-gem's version hackery to provide the passenger module path.
Remove broken way of checking for nginx.