fix PATH when rvm is sourced, update #1874