Update to replace an old nvm path if it exists already in $PATH.
diff --git a/nvm.sh b/nvm.sh
index 0f9c487..d3c9c34 100644
--- a/nvm.sh
+++ b/nvm.sh
@@ -78,8 +78,12 @@
         nvm help
         return;
       fi
-      # TODO: Remove old nvm paths before adding this one
-      PATH="$NVM_DIR/$2/bin:$PATH"
+      if [[ $PATH == *$NVM_DIR/*/bin* ]]; then
+        PATH=${PATH%$NVM_DIR/*/bin*}$NVM_DIR/$2/bin${PATH#*$NVM_DIR/*/bin}
+      else
+        PATH="$NVM_DIR/$2/bin:$PATH"
+      fi
+      export PATH
       echo "Now using node $2"
     ;;
     "list" )