title: "RVM is not a function" when using rails generators' run command
body: <p>I'm writing a rails generators gem to template my rails application setup. However, when this line of code is executed:</p>
  
  <pre><code>run  "rvm gemset create #{application_name} &amp;&amp; rvm gemset use #{application_name}"
  </code></pre>
  
  <p>"RVM is not a function" error appeared. However it seems that the create command did work:</p>
  
  <pre><code>ruby-2.1.0 - #gemset created /home/edward/.rvm/gems/ruby-2.1.0@blog
  ruby-2.1.0 - #generating blog wrappers.
  
  RVM is not a function, selecting rubies with 'rvm use ...' will not work.
  
  You need to change your terminal emulator preferences to allow login shell.
  Sometimes it is required to use `/bin/bash --login` as the command.
  Please visit https://rvm.io/integration/gnome-terminal/ for a example.
  </code></pre>
  
  <p>By the way, I already have the login shell enabled long time ago </p>
  
  <p><img src="https://i.imgur.com/41mKXCu.png" alt="my terminal profile preferences"> </p>