title: Cocoapods points to wrong version
body: <p>I had some problems with one version of the project. I've found this <a href="https://stackoverflow.com/questions/32756433/pod-install-giving-error-on-xcode-7">answer</a> where someone suggest steps to remove all cocoapods-connected stuff from the machine and reinstall it. I did follow the steps:</p>
  
  <pre><code>$ 'pod --version'
  0.36.1
  
  $ gem list --local | grep cocoapods
  cocoapods (0.39.0.rc.1, 0.38.2, 0.38.1, 0.37.2)
  cocoapods-core (0.39.0.rc.1, 0.38.2, 0.38.1, 0.37.2)
  cocoapods-downloader (0.9.3, 0.9.1)
  cocoapods-plugins (0.4.2)
  cocoapods-search (0.1.0)
  cocoapods-stats (0.6.2, 0.5.3)
  cocoapods-trunk (0.6.4, 0.6.1)
  cocoapods-try (0.5.1, 0.4.5)
  
  $ gem uninstall cocoapods // and all others from the list above
  </code></pre>
  
  <p>The problem is that when i again grep all cocoapods, the list was equal to upper one, nothing disappeared.</p>
  
  <pre><code>$ sudo gem uninstall cocoapods
  Select gem to uninstall:
   1. cocoapods-0.37.2
   2. cocoapods-0.38.1
   3. cocoapods-0.38.2
   4. cocoapods-0.39.0.rc.1
   5. All versions
  &gt; 5
  
  $ pod --version
  // here was the error command not found, so everything fine
  
  $ sudo gem install cocoapods
  Fetching: cocoapods-0.38.2.gem (100%)
  Successfully installed cocoapods-0.38.2
  Parsing documentation for cocoapods-0.38.2
  Installing ri documentation for cocoapods-0.38.2
  Done installing documentation for cocoapods after 2 seconds
  1 gem installed
  
  $ pod --version
  Could not find proper version of cocoapods (0.36.1) in any of the sources
  Run `bundle install` to install missing gems.
  </code></pre>
  
  <p>But why does it want me to install 0.36.1? Anyway, as it asked, I did:</p>
  
  <pre><code>$bundle install
  Installing cocoapods-core 0.36.1
  Installing cocoapods-downloader 0.8.1
  Installing cocoapods-plugins 0.4.1
  Installing cocoapods-trunk 0.6.0
  Installing cocoapods-try 0.4.3
  Installing cocoapods 0.36.1
  // Many "using" dependencies
  </code></pre>
  
  <p>So now when I run:</p>
  
  <pre><code>$ pod --version
  0.36.1
  </code></pre>
  
  <p>And I'm stuck :) Why can't I have newest release version? Maybe <code>pod --version</code> points to the newest version of <code>cocoapods-core</code> instead of only <code>cocoapods</code>, so everything is ok and I have the correct version?</p>