Vagrant, sudo, RVM and non-interactive shells do not play well with each other. Splitting the setup onto an interactive shell.