title: Cron is running in home directory instead of file directory
body: <p>I followed some other posts in stackoverflow and successfully setup cron with RVM using <code>rvm cron setup</code> and injected some ENV to the crontab file. </p>
  
  <p>When I was troubleshooting why the <code>dotenv</code> gem is not working, I realised the following: </p>
  
  <p>I placed my <code>test.rb</code> in file path <code>/home/myuser/ruby/test.rb</code> and had my <code>crontab</code> file as shown below:</p>
  
  <pre><code>* * * * * ruby /home/myuser/ruby/test.rb &gt;&gt; /home/myuser/ruby/output.log
  </code></pre>
  
  <p>and when I puts the output of the test.rb with <code>Dir.pwd</code>. The output states that the rb is run in the <code>/home/myuser/</code> directory instead of <code>/home/myuser/ruby</code> directory. </p>
  
  <p>While I had a hotfix by manually changing the path. But I wonder why it is the case. </p>