Add Ubuntu Trusty Tahr support to install script.

rubygems does not exist as a package on Trusty (though is back in Utopic),
so don't try and install it here, do it as needed in site specific places.

Trusty adds "(Ubuntu)" to the end of nginx's version string, so ignore it.