Ensure that puppet fails if system-rvm installation fails

If any of the commands in the shell script to install rvm fails, puppet doesn't fail. Fix that