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