Removed default check for curl, and placed it into nvm function
Removed default check for curl, and placed it into nvm function

This fixes issue with curl not being installed before nvm is initially sourced
and then curl subsequently being installed.

removed creation of global curl function (after error detected) which
overwrites the system tool, preventing execution of later installed
curl binary

jhliberty/nvm,slariviere/nvm,evocateur/nvm,kmctown/nvm,modulexcite/nvm,dfackler/nvm,appleboy/nvm,creationix/nvm,Salahudeen/nvm,edwmurph/nvm,gtdeng/nvm,tianzhihen/nvm,nontage24/nvm,wahyutaufik/nvm,diegofcb10/nvm,DigitallySeamless/nvm,hkdobrev/nvm,Richardphp/nvm,PeterDaveHello/nvm,thomasf/nvm,bevacqua/nvm,ljharb/nvm,parasaro92/nvm,cjac/nvm,mmorejon/nvm,tlevine/nvm,michael-ni/nvm,bbuck/nvm,kumaria/nvm,jaawerth/nvm,fnogatz/swivm,woss/nvm,hanhailong/nvm,CristianCantoro/nvm,vinaykaradia/clone-nvm,wskplho/nvm,WY08271/nvm,LeeLovCY/nvm,domenicosolazzo/nvm,lukechilds/nvm,scq000/nvm,LeeLovCY/nvm,PeterDaveHelloKitchen/nvm,psychoss/nvm,devedbox/nvm,christophercaburog/nvm,psychoss/nvm,nontage24/nvm,mirydz/nvm,gtdeng/nvm,WY08271/nvm,greyhwndz/nvm,christophercaburog/nvm,xtuple/nvm,Theodeus/nvm,pmq20/nvm,icyflame/nvm,sjfkai/nvm,edwmurph/nvm,mmorejon/nvm,woss/nvm,PeterDaveHelloKitchen/nvm,lukechilds/nvm,SampleLiao/nvm,owen-it/nvm,elrasguno/nvm,tianzhihen/nvm,CristianCantoro/nvm,greyhwndz/nvm,modulexcite/nvm,jbergstroem/nvm,diegofcb10/nvm,Richardphp/nvm,domenicosolazzo/nvm,wskplho/nvm,pmq20/nvm,evocateur/nvm,egilkh/nvm,creationix/nvm,ljharb/nvm,chinazhaghai/nvm,dfackler/nvm,williamboman/nvm,thomasf/nvm,kumaria/nvm,mirydz/nvm,DigitallySeamless/nvm,jbergstroem/nvm,wahyutaufik/nvm,reybango/nvm,cnpm/nvm,Theodeus/nvm,jhliberty/nvm,michael-ni/nvm,cirosantilli/nvm,joneit/nvm,reybango/nvm,hkdobrev/nvm,bbuck/nvm,parasaro92/nvm,cirosantilli/nvm,egilkh/nvm,cnpm/nvm,elrasguno/nvm,slariviere/nvm,misterdjules/nvm,williamboman/nvm,Salahudeen/nvm,kmctown/nvm,Kuzirashi/nvm,devedbox/nvm,scq000/nvm,JasonChrYoung/nvm,SampleLiao/nvm,Ingelheim/nvm,youleiy/nvm,bevacqua/nvm,PeterDaveHello/nvm,misterdjules/nvm,youleiy/nvm,Kuzirashi/nvm,IonicaBizauKitchen/nvm,chinazhaghai/nvm,jaawerth/nvm,tlevine/nvm,icyflame/nvm,joneit/nvm,Ingelheim/nvm,NicCollins/nvm,hanhailong/nvm,cjac/nvm,IonicaBizauKitchen/nvm,JanChw/nvm,JanChw/nvm,JasonChrYoung/nvm,owen-it/nvm,vinaykaradia/clone-nvm