When running ruby-install as root, don't prefix $package_cmd with sudo

If running as root, don't prefix the package install command with sudo.

I'm by no means a bash expert, but this patch lets me run ruby-install as root without sudo installed on my system.