Wraps mkdirsSync in a try/catch in case that fails.
Wraps mkdirsSync in a try/catch in case that fails.

This also pulls the code to remove a failed installation out into a separate function
rather than adding a third instance of the same code.

arduino-org/ArduinoStudio,mcanthony/brackets,gupta-tarun/brackets,Lojsan123/brackets,thr0w/brackets,bidle/brackets,udhayam/brackets,Pomax/brackets,thr0w/brackets,Th30/brackets,ashleygwilliams/brackets,abhisekp/brackets,quasto/ArduinoStudio,RamirezWillow/brackets,Lojsan123/brackets,StephanieMak/brackets,mjurczyk/brackets,thehogfather/brackets,pratts/brackets,nucliweb/brackets,xantage/brackets,alexkid64/brackets,fashionsun/brackets,abhisekp/brackets,Mosoc/brackets,eric-stanley/brackets,chinnyannieb/brackets,zaggino/brackets-electron,michaeljayt/brackets,lunode/brackets,brianjking/brackets,sgupta7857/brackets,gideonthomas/brackets,wangjun/brackets,netlams/brackets,ChaofengZhou/brackets,show0017/brackets,ls2uper/brackets,resir014/brackets,jmarkina/brackets,flukeout/brackets,mjurczyk/brackets,thr0w/brackets,eric-stanley/brackets,show0017/brackets,flukeout/brackets,IAmAnubhavSaini/brackets,pomadgw/brackets,michaeljayt/brackets,srinivashappy/brackets,Andrey-Pavlov/brackets,siddharta1337/brackets,wangjun/brackets,chrismoulton/brackets,pomadgw/brackets,Rynaro/brackets,Wikunia/brackets,kolipka/brackets,hanmichael/brackets,ecwebservices/brackets,mcanthony/brackets,lunode/brackets,Th30/brackets,weebygames/brackets,jmarkina/brackets,ScalaInc/brackets,fvntr/brackets,MarcelGerber/brackets,hanmichael/brackets,raygervais/brackets,simon66/brackets,Rynaro/brackets,Denisov21/brackets,simon66/brackets,quasto/ArduinoStudio,chrisle/brackets,NickersF/brackets,nucliweb/brackets,ggusman/present,kolipka/brackets,baig/brackets,treejames/brackets,flukeout/brackets,ropik/brackets,rafaelstz/brackets,dtcom/MyPSDBracket,arduino-org/ArduinoStudio,NGHGithub/brackets,Rajat-dhyani/brackets,JordanTheriault/brackets,baig/brackets,ecwebservices/brackets,SidBala/brackets,Wikunia/brackets,Jonavin/brackets,chrisle/brackets,jiawenbo/brackets,sophiacaspar/brackets,weebygames/brackets,mat-mcloughlin/brackets,2youyouo2/cocoslite,baig/brackets,alexkid64/brackets,andrewnc/brackets,wangjun/brackets,petetnt/brackets,stowball/brackets,Th30/brackets,Andrey-Pavlov/brackets,RamirezWillow/brackets,goldcase/brackets,IAmAnubhavSaini/brackets,pomadgw/brackets,dangkhue27/brackets,gwynndesign/brackets,Fcmam5/brackets,tan9/brackets,ricciozhang/brackets,ls2uper/brackets,mcanthony/brackets,FTG-003/brackets,MahadevanSrinivasan/brackets,jacobnash/brackets,zaggino/brackets-electron,ggusman/present,hanmichael/brackets,lovewitty/brackets,veveykocute/brackets,mjurczyk/brackets,humphd/brackets,Cartman0/brackets,uwsd/brackets,cdot-brackets-extensions/nimble-htmlLint,Mosoc/brackets,pkdevbox/brackets,ropik/brackets,mcanthony/brackets,chrisle/brackets,Lojsan123/brackets,Real-Currents/brackets,zaggino/brackets-electron,humphd/brackets,JordanTheriault/brackets,sgupta7857/brackets,revi/brackets,baig/brackets,arduino-org/ArduinoStudio,Live4Code/brackets,treejames/brackets,karevn/brackets,srinivashappy/brackets,sprintr/brackets,goldcase/brackets,MantisWare/brackets,jacobnash/brackets,Mosoc/brackets,resir014/brackets,udhayam/brackets,ecwebservices/brackets,Lojsan123/brackets,siddharta1337/brackets,ForkedRepos/brackets,82488059/brackets,fcjailybo/brackets,StephanieMak/brackets,bidle/brackets,ralic/brackets,revi/brackets,stowball/brackets,raygervais/brackets,thr0w/brackets,wesleifreitas/brackets,kolipka/brackets,chrismoulton/brackets,stowball/brackets,siddharta1337/brackets,amrelnaggar/brackets,riselabs-ufba/RiPLE-HC-ExperimentalData,ScalaInc/brackets,Wikunia/brackets,wakermahmud/brackets,Free-Technology-Guild/brackets,riselabs-ufba/RiPLE-HC-ExperimentalData,chrismoulton/brackets,tan9/brackets,jacobnash/brackets,adrianhartanto0/brackets,gideonthomas/brackets,richmondgozarin/brackets,michaeljayt/brackets,StephanieMak/brackets,simon66/brackets,fcjailybo/brackets,mjurczyk/brackets,srhbinion/brackets,veveykocute/brackets,m66n/brackets,ashleygwilliams/brackets,GHackAnonymous/brackets,shiyamkumar/brackets,adobe/brackets,dangkhue27/brackets,NGHGithub/brackets,ChaofengZhou/brackets,Andrey-Pavlov/brackets,ralic/brackets,srhbinion/brackets,abhisekp/brackets,tan9/brackets,thehogfather/brackets,adrianhartanto0/brackets,zhukaixy/brackets,revi/brackets,resir014/brackets,arduino-org/ArduinoStudio,siddharta1337/brackets,netlams/brackets,NKcentinel/brackets,sedge/nimble,dtcom/MyPSDBracket,goldcase/brackets,chambej/brackets,treejames/brackets,abhisekp/brackets,y12uc231/brackets,mozilla/brackets,netlams/brackets,ecwebservices/brackets,gcommetti/brackets,pomadgw/brackets,uwsd/brackets,jiimaho/brackets,SebastianBoyd/sebastianboyd.github.io-OLD,keir-rex/brackets,richmondgozarin/brackets,cosmosgenius/brackets,L0g1k/brackets,ls2uper/brackets,SebastianBoyd/sebastianboyd.github.io-OLD,busykai/brackets,udhayam/brackets,show0017/brackets,rafaelstz/brackets,RamirezWillow/brackets,ryanackley/tailor,wangjun/brackets,rafaelstz/brackets,weebygames/brackets,sgupta7857/brackets,goldcase/brackets,iamchathu/brackets,srinivashappy/brackets,82488059/brackets,fvntr/brackets,revi/brackets,sedge/nimble,cdot-brackets-extensions/nimble-htmlLint,fronzec/brackets,falcon1812/brackets,eric-stanley/brackets,MahadevanSrinivasan/brackets,CapeSepias/brackets,JordanTheriault/brackets,GHackAnonymous/brackets,pratts/brackets,srinivashappy/brackets,NGHGithub/brackets,y12uc231/brackets,zhukaixy/brackets,TylerL-uxai/brackets,michaeljayt/brackets,Th30/brackets,iamchathu/brackets,agreco/brackets,FTG-003/brackets,kilroy23/brackets,pratts/brackets,jiimaho/brackets,petetnt/brackets,TylerL-uxai/brackets,malinkie/brackets,falcon1812/brackets,zaggino/brackets-electron,richmondgozarin/brackets,sgupta7857/brackets,amrelnaggar/brackets,chrisle/brackets,sophiacaspar/brackets,zLeonjo/brackets,MarcelGerber/brackets,zhukaixy/brackets,robertkarlsson/brackets,Fcmam5/brackets,chambej/brackets,MahadevanSrinivasan/brackets,netlams/brackets,petetnt/brackets,fronzec/brackets,MantisWare/brackets,mat-mcloughlin/brackets,uwsd/brackets,fashionsun/brackets,emanziano/brackets,emanziano/brackets,macdg/brackets,cosmosgenius/brackets,raygervais/brackets,keir-rex/brackets,revi/brackets,ForkedRepos/brackets,pratts/brackets,GHackAnonymous/brackets,fvntr/brackets,FTG-003/brackets,zaggino/brackets-electron,NKcentinel/brackets,ricciozhang/brackets,sedge/nimble,pomadgw/brackets,gwynndesign/brackets,fvntr/brackets,Live4Code/brackets,ficristo/brackets,RobertJGabriel/brackets,chinnyannieb/brackets,rlugojr/brackets,Real-Currents/brackets,NickersF/brackets,pkdevbox/brackets,Free-Technology-Guild/brackets,weebygames/brackets,RobertJGabriel/brackets,rlugojr/brackets,IAmAnubhavSaini/brackets,shal1y/brackets,sprintr/brackets,alicoding/nimble,hanmichael/brackets,ficristo/brackets,ForkedRepos/brackets,srhbinion/brackets,karevn/brackets,bidle/brackets,gcommetti/brackets,Jonavin/brackets,macdg/brackets,mat-mcloughlin/brackets,fabricadeaplicativos/brackets,fvntr/brackets,wesleifreitas/brackets,SidBala/brackets,resir014/brackets,shal1y/brackets,fastrde/brackets,ScalaInc/brackets,Free-Technology-Guild/brackets,stowball/brackets,bidle/brackets,fcjailybo/brackets,sophiacaspar/brackets,adrianhartanto0/brackets,ricciozhang/brackets,zLeonjo/brackets,stowball/brackets,82488059/brackets,brianjking/brackets,NGHGithub/brackets,simon66/brackets,wesleifreitas/brackets,hanmichael/brackets,SidBala/brackets,CapeSepias/brackets,sophiacaspar/brackets,jiimaho/brackets,rafaelstz/brackets,thehogfather/brackets,Rynaro/brackets,albertinad/brackets,fastrde/brackets,busykai/brackets,thehogfather/brackets,CapeSepias/brackets,NickersF/brackets,mjurczyk/brackets,karevn/brackets,wakermahmud/brackets,simon66/brackets,albertinad/brackets,FTG-003/brackets,No9/brackets,baig/brackets,wakermahmud/brackets,wesleifreitas/brackets,rlugojr/brackets,flukeout/brackets,jiawenbo/brackets,MantisWare/brackets,lunode/brackets,jiawenbo/brackets,massimiliano76/brackets,alicoding/nimble,flukeout/brackets,udhayam/brackets,robertkarlsson/brackets,karevn/brackets,Rynaro/brackets,andrewnc/brackets,Fcmam5/brackets,nucliweb/brackets,thehogfather/brackets,ecwebservices/brackets,jiawenbo/brackets,udhayam/brackets,shiyamkumar/brackets,NKcentinel/brackets,xantage/brackets,ForkedRepos/brackets,Live4Code/brackets,karevn/brackets,sprintr/brackets,zLeonjo/brackets,rlugojr/brackets,wangjun/brackets,StephanieMak/brackets,marcominetti/brackets,busykai/brackets,Real-Currents/brackets,gcommetti/brackets,andrewnc/brackets,brianjking/brackets,chambej/brackets,Denisov21/brackets,SebastianBoyd/sebastianboyd.github.io-OLD,abhisekp/brackets,xantage/brackets,chrismoulton/brackets,L0g1k/brackets,richmondgozarin/brackets,malinkie/brackets,chinnyannieb/brackets,chinnyannieb/brackets,marcominetti/brackets,gupta-tarun/brackets,cosmosgenius/brackets,RobertJGabriel/brackets,fastrde/brackets,No9/brackets,StephanieMak/brackets,fronzec/brackets,Real-Currents/brackets,humphd/brackets,JordanTheriault/brackets,agreco/brackets,No9/brackets,falcon1812/brackets,zhukaixy/brackets,bidle/brackets,cosmosgenius/brackets,brianjking/brackets,raygervais/brackets,Fcmam5/brackets,adrianhartanto0/brackets,gideonthomas/brackets,shal1y/brackets,jiimaho/brackets,y12uc231/brackets,youprofit/brackets,Live4Code/brackets,Andrey-Pavlov/brackets,veveykocute/brackets,fashionsun/brackets,sedge/nimble,m66n/brackets,macdg/brackets,shal1y/brackets,GHackAnonymous/brackets,raygervais/brackets,adobe/brackets,ggusman/present,thr0w/brackets,emanziano/brackets,phillipalexander/brackets,fabricadeaplicativos/brackets,shiyamkumar/brackets,SidBala/brackets,chrismoulton/brackets,goldcase/brackets,fronzec/brackets,youprofit/brackets,eric-stanley/brackets,Cartman0/brackets,mozilla/brackets,massimiliano76/brackets,ChaofengZhou/brackets,ChaofengZhou/brackets,xantage/brackets,SebastianBoyd/sebastianboyd.github.io-OLD,malinkie/brackets,ricciozhang/brackets,massimiliano76/brackets,IAmAnubhavSaini/brackets,CapeSepias/brackets,jmarkina/brackets,Wikunia/brackets,FTG-003/brackets,ricciozhang/brackets,ropik/brackets,keir-rex/brackets,humphd/brackets,phillipalexander/brackets,mat-mcloughlin/brackets,Free-Technology-Guild/brackets,alexkid64/brackets,Rajat-dhyani/brackets,cdot-brackets-extensions/nimble-htmlLint,dangkhue27/brackets,dangkhue27/brackets,gupta-tarun/brackets,Denisov21/brackets,agreco/brackets,gupta-tarun/brackets,weebygames/brackets,fabricadeaplicativos/brackets,sprintr/brackets,dtcom/MyPSDBracket,falcon1812/brackets,RamirezWillow/brackets,mozilla/brackets,RamirezWillow/brackets,adrianhartanto0/brackets,Cartman0/brackets,andrewnc/brackets,gideonthomas/brackets,pratts/brackets,ralic/brackets,dangkhue27/brackets,keir-rex/brackets,uwsd/brackets,Rajat-dhyani/brackets,veveykocute/brackets,netlams/brackets,TylerL-uxai/brackets,Pomax/brackets,robertkarlsson/brackets,fronzec/brackets,shiyamkumar/brackets,L0g1k/brackets,zhukaixy/brackets,lovewitty/brackets,jiimaho/brackets,siddharta1337/brackets,phillipalexander/brackets,ggusman/present,Jonavin/brackets,ralic/brackets,richmondgozarin/brackets,ryanackley/tailor,fabricadeaplicativos/brackets,zLeonjo/brackets,Pomax/brackets,Mosoc/brackets,ryanackley/tailor,amrelnaggar/brackets,jmarkina/brackets,emanziano/brackets,amrelnaggar/brackets,IAmAnubhavSaini/brackets,tan9/brackets,robertkarlsson/brackets,macdg/brackets,ashleygwilliams/brackets,No9/brackets,alexkid64/brackets,chinnyannieb/brackets,Denisov21/brackets,adobe/brackets,ashleygwilliams/brackets,ScalaInc/brackets,uwsd/brackets,resir014/brackets,Real-Currents/brackets,xantage/brackets,Free-Technology-Guild/brackets,show0017/brackets,TylerL-uxai/brackets,ryanackley/tailor,fashionsun/brackets,treejames/brackets,arduino-org/ArduinoStudio,mozilla/brackets,rlugojr/brackets,zLeonjo/brackets,Real-Currents/brackets,Jonavin/brackets,NGHGithub/brackets,srhbinion/brackets,cdot-brackets-extensions/nimble-htmlLint,treejames/brackets,MantisWare/brackets,iamchathu/brackets,Fcmam5/brackets,pkdevbox/brackets,jmarkina/brackets,fcjailybo/brackets,fashionsun/brackets,ashleygwilliams/brackets,srhbinion/brackets,agreco/brackets,TylerL-uxai/brackets,m66n/brackets,lovewitty/brackets,y12uc231/brackets,Lojsan123/brackets,Pomax/brackets,lovewitty/brackets,82488059/brackets,RobertJGabriel/brackets,youprofit/brackets,chrisle/brackets,Cartman0/brackets,massimiliano76/brackets,fcjailybo/brackets,Pomax/brackets,albertinad/brackets,alicoding/nimble,malinkie/brackets,m66n/brackets,ficristo/brackets,lovewitty/brackets,Rajat-dhyani/brackets,MarcelGerber/brackets,iamchathu/brackets,riselabs-ufba/RiPLE-HC-ExperimentalData,82488059/brackets,phillipalexander/brackets,iamchathu/brackets,2youyouo2/cocoslite,youprofit/brackets,Th30/brackets,fabricadeaplicativos/brackets,ForkedRepos/brackets,busykai/brackets,chambej/brackets,MarcelGerber/brackets,keir-rex/brackets,rafaelstz/brackets,Rynaro/brackets,Live4Code/brackets,NKcentinel/brackets,petetnt/brackets,y12uc231/brackets,kolipka/brackets,wakermahmud/brackets,emanziano/brackets,albertinad/brackets,quasto/ArduinoStudio,jacobnash/brackets,GHackAnonymous/brackets,2youyouo2/cocoslite,gcommetti/brackets,kolipka/brackets,busykai/brackets,massimiliano76/brackets,shal1y/brackets,gcommetti/brackets,kilroy23/brackets,wesleifreitas/brackets,jacobnash/brackets,Cartman0/brackets,srinivashappy/brackets,nucliweb/brackets,humphd/brackets,gwynndesign/brackets,lunode/brackets,adobe/brackets,wakermahmud/brackets,robertkarlsson/brackets,youprofit/brackets,fastrde/brackets,MantisWare/brackets,brianjking/brackets,dtcom/MyPSDBracket,mcanthony/brackets,riselabs-ufba/RiPLE-HC-ExperimentalData,michaeljayt/brackets,riselabs-ufba/RiPLE-HC-ExperimentalData,andrewnc/brackets,Mosoc/brackets,sophiacaspar/brackets,pkdevbox/brackets,ChaofengZhou/brackets,gwynndesign/brackets,ficristo/brackets,2youyouo2/cocoslite,ScalaInc/brackets,alexkid64/brackets,Denisov21/brackets,RobertJGabriel/brackets,falcon1812/brackets,ropik/brackets,ralic/brackets,kilroy23/brackets,chambej/brackets,veveykocute/brackets,quasto/ArduinoStudio,gideonthomas/brackets,MahadevanSrinivasan/brackets,phillipalexander/brackets,malinkie/brackets,kilroy23/brackets,sgupta7857/brackets,m66n/brackets,adobe/brackets,MarcelGerber/brackets,Rajat-dhyani/brackets,amrelnaggar/brackets,Jonavin/brackets,L0g1k/brackets,alicoding/nimble,CapeSepias/brackets,quasto/ArduinoStudio,ls2uper/brackets,lunode/brackets,zaggino/brackets-electron,shiyamkumar/brackets,macdg/brackets,NickersF/brackets,NKcentinel/brackets,gupta-tarun/brackets,eric-stanley/brackets,sedge/nimble,JordanTheriault/brackets,SebastianBoyd/sebastianboyd.github.io-OLD,No9/brackets,ls2uper/brackets,mozilla/brackets,petetnt/brackets,SidBala/brackets,Wikunia/brackets,fastrde/brackets,nucliweb/brackets,MahadevanSrinivasan/brackets,NickersF/brackets,riselabs-ufba/RiPLE-HC-ExperimentalData,2youyouo2/cocoslite,Andrey-Pavlov/brackets,ficristo/brackets,jiawenbo/brackets,sprintr/brackets,pkdevbox/brackets,kilroy23/brackets,tan9/brackets,albertinad/brackets