Source the chruby auto script for auto switching of ruby versions.
Specify ruby 2.1.2 as the global default with chruby.
Remove the lines that incorrectly modify the gem environment variables.