Adding automated AMI generation to EC2 with Ruby server start up script

RVM is being installed as sudo on vagrant, but not ubuntu. Changing the home directory did not work. And removing sudo from the beginning of the bash subscript wouldn't install.