Change position of `cd` so that rvm gemset is loaded

I got an error in my production environment because it was not loading the right ruby and gemset.
Merge pull request #419 from daniel-g/patch-1

Change position of `cd` so that rvm gemset is loaded