Updated to support rvm sourcing.