Add rvm support, make play less dumb