Added support for running with rvm from the applications user

Really liked the script, but ran into a limitation when it was required to use different rvm installations for different applications.

Please excuse my poor bash style, I'd be happy to accept any improvements.