Unable to do rake command because of Ruby

Previously I have been trying to install ruby and rails and used apt-get
at one point. I did install previous versions of ruby and rails by
mistake which I had to correct. Now I used rvm to install ruby 2.0.0
and rails 4.0.0 but when I try to run the rake command I get:

/usr/bin/env: ruby1.9.1: No such file or directory

The problem here seems to be is that my system is looking for something
for ruby1.9.1 when I am using ruby 2.0.0. What is going on here?

gem pristine rake