passenger unnecessarily installs ruby-1.8.7 package

Move package install of ruby + curl into conditional when ruby is not currently installed. Otherwise ruby v1.8.7 always gets installed.