improve rvm list code, update #1664