better script/clean removal for windows
better script/clean removal for windows

Now `script/clean` uses `del /F /Q /S` to cleanup the folders but `del /S` deletes specified files from all subdirectories, so if we pass a folder as a parameter it will only delete the files within the folder and all subfolders recursively but not the actual folders. And this can cause problems, see Issue #2487

A better way is to use `rmdir /S /Q` as it takes care of the folder itself and it's contents.
/S - removes all directories and files in the specified directory in addition to the directory itself. (removes the directory tree)
/Q - obvious this is quite mode

I tested this approach on a couple machines that needed a clean before building and works OK with `rmdir`. It might give a warning in the console like `The system cannot find the file specified.` because not all of them are there but it can be ignored as the script will finish running.
avdg/atom,liuxiong332/atom,paulcbetts/atom,bolinfest/atom,ReddTea/atom,devoncarew/atom,russlescai/atom,splodingsocks/atom,synaptek/atom,nvoron23/atom,githubteacher/atom,kc8wxm/atom,yangchenghu/atom,G-Baby/atom,yomybaby/atom,florianb/atom,ilovezy/atom,kc8wxm/atom,batjko/atom,alexandergmann/atom,jjz/atom,anuwat121/atom,toqz/atom,jjz/atom,helber/atom,ali/atom,jjz/atom,wiggzz/atom,hharchani/atom,ppamorim/atom,nvoron23/atom,devoncarew/atom,rsvip/aTom,woss/atom,jacekkopecky/atom,ashneo76/atom,gzzhanghao/atom,kjav/atom,tjkr/atom,kaicataldo/atom,ardeshirj/atom,amine7536/atom,dannyflax/atom,ivoadf/atom,atom/atom,ilovezy/atom,brumm/atom,tmunro/atom,svanharmelen/atom,t9md/atom,Jdesk/atom,chfritz/atom,rjattrill/atom,amine7536/atom,FIT-CSE2410-A-Bombs/atom,abcP9110/atom,mostafaeweda/atom,basarat/atom,dijs/atom,targeter21/atom,mrodalgaard/atom,mnquintana/atom,einarmagnus/atom,mertkahyaoglu/atom,MjAbuz/atom,bencolon/atom,vinodpanicker/atom,folpindo/atom,alexandergmann/atom,Galactix/atom,pkdevbox/atom,gabrielPeart/atom,ykeisuke/atom,dsandstrom/atom,wiggzz/atom,phord/atom,kaicataldo/atom,Rychard/atom,jtrose2/atom,Galactix/atom,anuwat121/atom,fedorov/atom,n-riesco/atom,gisenberg/atom,Andrey-Pavlov/atom,palita01/atom,tanin47/atom,kc8wxm/atom,Ju2ender/atom,Ju2ender/atom,einarmagnus/atom,YunchengLiao/atom,acontreras89/atom,panuchart/atom,liuderchi/atom,prembasumatary/atom,rookie125/atom,batjko/atom,lovesnow/atom,xream/atom,alexandergmann/atom,abcP9110/atom,woss/atom,vjeux/atom,dkfiresky/atom,hellendag/atom,AlisaKiatkongkumthon/atom,dsandstrom/atom,prembasumatary/atom,splodingsocks/atom,Jdesk/atom,andrewleverette/atom,Jandersoft/atom,decaffeinate-examples/atom,AlbertoBarrago/atom,basarat/atom,qiujuer/atom,RobinTec/atom,Jdesk/atom,charleswhchan/atom,prembasumatary/atom,toqz/atom,vinodpanicker/atom,panuchart/atom,rmartin/atom,codex8/atom,panuchart/atom,boomwaiza/atom,NunoEdgarGub1/atom,johnrizzo1/atom,devmario/atom,kittens/atom,pombredanne/atom,codex8/atom,Austen-G/BlockBuilder,g2p/atom,synaptek/atom,AlbertoBarrago/atom,russlescai/atom,jjz/atom,transcranial/atom,alfredxing/atom,me6iaton/atom,githubteacher/atom,mnquintana/atom,Mokolea/atom,Abdillah/atom,kittens/atom,lisonma/atom,me-benni/atom,KENJU/atom,Hasimir/atom,stuartquin/atom,beni55/atom,sotayamashita/atom,avdg/atom,n-riesco/atom,basarat/atom,isghe/atom,GHackAnonymous/atom,harshdattani/atom,Neron-X5/atom,devoncarew/atom,hagb4rd/atom,ironbox360/atom,niklabh/atom,originye/atom,deepfox/atom,kjav/atom,NunoEdgarGub1/atom,githubteacher/atom,hpham04/atom,hpham04/atom,me-benni/atom,g2p/atom,alfredxing/atom,ironbox360/atom,bcoe/atom,kevinrenaers/atom,ppamorim/atom,targeter21/atom,Shekharrajak/atom,vcarrera/atom,jlord/atom,brettle/atom,Jandersolutions/atom,folpindo/atom,FIT-CSE2410-A-Bombs/atom,lpommers/atom,tisu2tisu/atom,oggy/atom,kc8wxm/atom,rmartin/atom,sxgao3001/atom,isghe/atom,fedorov/atom,vcarrera/atom,amine7536/atom,AlexxNica/atom,kdheepak89/atom,dijs/atom,devmario/atom,FoldingText/atom,yalexx/atom,ralphtheninja/atom,jacekkopecky/atom,ashneo76/atom,matthewclendening/atom,jtrose2/atom,pengshp/atom,sxgao3001/atom,qskycolor/atom,paulcbetts/atom,phord/atom,yalexx/atom,sxgao3001/atom,g2p/atom,mnquintana/atom,tmunro/atom,sekcheong/atom,deoxilix/atom,jacekkopecky/atom,vjeux/atom,amine7536/atom,h0dgep0dge/atom,lovesnow/atom,florianb/atom,tony612/atom,Ju2ender/atom,nvoron23/atom,constanzaurzua/atom,stinsonga/atom,Galactix/atom,gontadu/atom,omarhuanca/atom,pombredanne/atom,ppamorim/atom,rlugojr/atom,0x73/atom,Dennis1978/atom,gisenberg/atom,hakatashi/atom,n-riesco/atom,jtrose2/atom,chengky/atom,lisonma/atom,jeremyramin/atom,sekcheong/atom,ObviouslyGreen/atom,BogusCurry/atom,daxlab/atom,ezeoleaf/atom,MjAbuz/atom,RuiDGoncalves/atom,liuxiong332/atom,abcP9110/atom,stuartquin/atom,beni55/atom,Dennis1978/atom,darwin/atom,sebmck/atom,MjAbuz/atom,alfredxing/atom,SlimeQ/atom,codex8/atom,efatsi/atom,jordanbtucker/atom,john-kelly/atom,Galactix/atom,daxlab/atom,n-riesco/atom,dkfiresky/atom,devmario/atom,kdheepak89/atom,hagb4rd/atom,ReddTea/atom,elkingtonmcb/atom,omarhuanca/atom,kevinrenaers/atom,batjko/atom,fedorov/atom,jacekkopecky/atom,paulcbetts/atom,pkdevbox/atom,h0dgep0dge/atom,Jandersolutions/atom,brumm/atom,rookie125/atom,bencolon/atom,mertkahyaoglu/atom,gisenberg/atom,qiujuer/atom,rmartin/atom,liuderchi/atom,Andrey-Pavlov/atom,chengky/atom,ardeshirj/atom,ali/atom,scv119/atom,basarat/atom,yamhon/atom,crazyquark/atom,Ju2ender/atom,mostafaeweda/atom,russlescai/atom,kittens/atom,dsandstrom/atom,tisu2tisu/atom,AlisaKiatkongkumthon/atom,Andrey-Pavlov/atom,fang-yufeng/atom,AdrianVovk/substance-ide,nvoron23/atom,harshdattani/atom,PKRoma/atom,Abdillah/atom,isghe/atom,yamhon/atom,Locke23rus/atom,burodepeper/atom,yomybaby/atom,fscherwi/atom,davideg/atom,bj7/atom,russlescai/atom,nrodriguez13/atom,kandros/atom,boomwaiza/atom,Sangaroonaom/atom,RobinTec/atom,abcP9110/atom,lpommers/atom,bsmr-x-script/atom,fscherwi/atom,darwin/atom,lisonma/atom,nrodriguez13/atom,seedtigo/atom,Galactix/atom,YunchengLiao/atom,matthewclendening/atom,0x73/atom,oggy/atom,rsvip/aTom,jlord/atom,burodepeper/atom,mnquintana/atom,acontreras89/atom,CraZySacX/atom,Arcanemagus/atom,ali/atom,toqz/atom,mnquintana/atom,gabrielPeart/atom,Neron-X5/atom,deepfox/atom,NunoEdgarGub1/atom,andrewleverette/atom,Ingramz/atom,AlbertoBarrago/atom,fredericksilva/atom,vjeux/atom,yamhon/atom,Klozz/atom,ilovezy/atom,fredericksilva/atom,crazyquark/atom,johnrizzo1/atom,ObviouslyGreen/atom,bcoe/atom,scv119/atom,deepfox/atom,boomwaiza/atom,yomybaby/atom,ykeisuke/atom,CraZySacX/atom,tmunro/atom,hharchani/atom,ReddTea/atom,champagnez/atom,rjattrill/atom,amine7536/atom,ardeshirj/atom,fang-yufeng/atom,hagb4rd/atom,hharchani/atom,me-benni/atom,mdumrauf/atom,bj7/atom,Sangaroonaom/atom,devoncarew/atom,kevinrenaers/atom,cyzn/atom,synaptek/atom,vinodpanicker/atom,sillvan/atom,Jdesk/atom,dannyflax/atom,medovob/atom,qiujuer/atom,tony612/atom,niklabh/atom,G-Baby/atom,bsmr-x-script/atom,fredericksilva/atom,targeter21/atom,Locke23rus/atom,ppamorim/atom,jtrose2/atom,codex8/atom,mertkahyaoglu/atom,qiujuer/atom,kjav/atom,MjAbuz/atom,batjko/atom,einarmagnus/atom,scv119/atom,vhutheesing/atom,qskycolor/atom,t9md/atom,john-kelly/atom,deoxilix/atom,deepfox/atom,constanzaurzua/atom,svanharmelen/atom,palita01/atom,kandros/atom,rsvip/aTom,tanin47/atom,wiggzz/atom,gisenberg/atom,bj7/atom,PKRoma/atom,bryonwinger/atom,kdheepak89/atom,vjeux/atom,Jonekee/atom,ReddTea/atom,Arcanemagus/atom,liuderchi/atom,Rodjana/atom,ralphtheninja/atom,Klozz/atom,cyzn/atom,jlord/atom,rlugojr/atom,fscherwi/atom,bcoe/atom,Jandersoft/atom,lisonma/atom,Hasimir/atom,mostafaeweda/atom,ezeoleaf/atom,chengky/atom,matthewclendening/atom,Neron-X5/atom,vhutheesing/atom,targeter21/atom,MjAbuz/atom,mdumrauf/atom,SlimeQ/atom,ralphtheninja/atom,CraZySacX/atom,ezeoleaf/atom,Jandersolutions/atom,jordanbtucker/atom,deoxilix/atom,sotayamashita/atom,dijs/atom,ykeisuke/atom,hharchani/atom,kdheepak89/atom,decaffeinate-examples/atom,tjkr/atom,jordanbtucker/atom,mdumrauf/atom,hpham04/atom,dannyflax/atom,qskycolor/atom,Jonekee/atom,ironbox360/atom,nucked/atom,prembasumatary/atom,jtrose2/atom,Abdillah/atom,dannyflax/atom,johnhaley81/atom,andrewleverette/atom,florianb/atom,hakatashi/atom,yalexx/atom,scippio/atom,fedorov/atom,codex8/atom,dsandstrom/atom,crazyquark/atom,basarat/atom,KENJU/atom,jacekkopecky/atom,AdrianVovk/substance-ide,sebmck/atom,vcarrera/atom,splodingsocks/atom,acontreras89/atom,fang-yufeng/atom,constanzaurzua/atom,vinodpanicker/atom,Jandersoft/atom,originye/atom,bcoe/atom,001szymon/atom,me6iaton/atom,vinodpanicker/atom,acontreras89/atom,ali/atom,john-kelly/atom,liuderchi/atom,decaffeinate-examples/atom,rxkit/atom,tony612/atom,rjattrill/atom,KENJU/atom,rjattrill/atom,fedorov/atom,Arcanemagus/atom,dkfiresky/atom,DiogoXRP/atom,paulcbetts/atom,fang-yufeng/atom,Abdillah/atom,FoldingText/atom,kjav/atom,devmario/atom,bolinfest/atom,helber/atom,ilovezy/atom,bencolon/atom,chfritz/atom,chengky/atom,pombredanne/atom,me6iaton/atom,qiujuer/atom,medovob/atom,Rychard/atom,constanzaurzua/atom,fredericksilva/atom,woss/atom,kandros/atom,beni55/atom,Jandersoft/atom,gontadu/atom,davideg/atom,mrodalgaard/atom,gabrielPeart/atom,jacekkopecky/atom,Ingramz/atom,omarhuanca/atom,toqz/atom,AlisaKiatkongkumthon/atom,johnrizzo1/atom,omarhuanca/atom,prembasumatary/atom,matthewclendening/atom,nucked/atom,constanzaurzua/atom,woss/atom,FIT-CSE2410-A-Bombs/atom,SlimeQ/atom,harshdattani/atom,0x73/atom,Hasimir/atom,Rodjana/atom,Austen-G/BlockBuilder,abcP9110/atom,tisu2tisu/atom,kittens/atom,BogusCurry/atom,dsandstrom/atom,charleswhchan/atom,sillvan/atom,001szymon/atom,pengshp/atom,YunchengLiao/atom,folpindo/atom,Hasimir/atom,Shekharrajak/atom,Locke23rus/atom,FoldingText/atom,pombredanne/atom,bryonwinger/atom,jeremyramin/atom,transcranial/atom,targeter21/atom,Klozz/atom,darwin/atom,Austen-G/BlockBuilder,NunoEdgarGub1/atom,lovesnow/atom,jlord/atom,basarat/atom,yangchenghu/atom,t9md/atom,Jdesk/atom,liuxiong332/atom,elkingtonmcb/atom,crazyquark/atom,charleswhchan/atom,sekcheong/atom,qskycolor/atom,sebmck/atom,decaffeinate-examples/atom,xream/atom,rxkit/atom,oggy/atom,palita01/atom,woss/atom,RuiDGoncalves/atom,Hasimir/atom,einarmagnus/atom,sebmck/atom,niklabh/atom,bryonwinger/atom,yomybaby/atom,tony612/atom,Jonekee/atom,john-kelly/atom,matthewclendening/atom,rsvip/aTom,FoldingText/atom,mrodalgaard/atom,PKRoma/atom,h0dgep0dge/atom,charleswhchan/atom,AdrianVovk/substance-ide,DiogoXRP/atom,davideg/atom,brettle/atom,gisenberg/atom,yalexx/atom,johnhaley81/atom,ivoadf/atom,stinsonga/atom,elkingtonmcb/atom,Shekharrajak/atom,Mokolea/atom,nvoron23/atom,Rychard/atom,gontadu/atom,seedtigo/atom,avdg/atom,efatsi/atom,pombredanne/atom,hakatashi/atom,ezeoleaf/atom,sotayamashita/atom,Jandersolutions/atom,RobinTec/atom,fredericksilva/atom,ashneo76/atom,charleswhchan/atom,phord/atom,brumm/atom,ivoadf/atom,sxgao3001/atom,me6iaton/atom,atom/atom,sekcheong/atom,GHackAnonymous/atom,SlimeQ/atom,yomybaby/atom,scippio/atom,Huaraz2/atom,dannyflax/atom,001szymon/atom,sillvan/atom,tanin47/atom,rmartin/atom,dkfiresky/atom,jeremyramin/atom,BogusCurry/atom,me6iaton/atom,Jandersoft/atom,rmartin/atom,hpham04/atom,RobinTec/atom,stinsonga/atom,lisonma/atom,RuiDGoncalves/atom,Mokolea/atom,cyzn/atom,Austen-G/BlockBuilder,qskycolor/atom,devmario/atom,gzzhanghao/atom,Neron-X5/atom,RobinTec/atom,mostafaeweda/atom,burodepeper/atom,liuxiong332/atom,chengky/atom,dkfiresky/atom,Shekharrajak/atom,kjav/atom,YunchengLiao/atom,tony612/atom,FoldingText/atom,sillvan/atom,vcarrera/atom,mertkahyaoglu/atom,0x73/atom,ilovezy/atom,originye/atom,chfritz/atom,batjko/atom,hakatashi/atom,einarmagnus/atom,florianb/atom,vhutheesing/atom,vjeux/atom,Rodjana/atom,h0dgep0dge/atom,ObviouslyGreen/atom,AlexxNica/atom,deepfox/atom,hpham04/atom,pkdevbox/atom,hagb4rd/atom,Jandersolutions/atom,n-riesco/atom,Ju2ender/atom,champagnez/atom,KENJU/atom,GHackAnonymous/atom,rookie125/atom,kaicataldo/atom,SlimeQ/atom,oggy/atom,hellendag/atom,kdheepak89/atom,lovesnow/atom,Andrey-Pavlov/atom,toqz/atom,Austen-G/BlockBuilder,Shekharrajak/atom,anuwat121/atom,sillvan/atom,rsvip/aTom,tjkr/atom,acontreras89/atom,vcarrera/atom,GHackAnonymous/atom,kc8wxm/atom,hharchani/atom,sebmck/atom,Neron-X5/atom,Dennis1978/atom,mostafaeweda/atom,scv119/atom,hellendag/atom,jlord/atom,efatsi/atom,hagb4rd/atom,xream/atom,florianb/atom,DiogoXRP/atom,ali/atom,ReddTea/atom,FoldingText/atom,johnhaley81/atom,sekcheong/atom,Huaraz2/atom,davideg/atom,GHackAnonymous/atom,helber/atom,sxgao3001/atom,seedtigo/atom,fang-yufeng/atom,rxkit/atom,stinsonga/atom,AlexxNica/atom,Andrey-Pavlov/atom,Ingramz/atom,oggy/atom,jjz/atom,gzzhanghao/atom,bsmr-x-script/atom,davideg/atom,Abdillah/atom,KENJU/atom,devoncarew/atom,russlescai/atom,rlugojr/atom,lpommers/atom,nucked/atom,Sangaroonaom/atom,NunoEdgarGub1/atom,champagnez/atom,bryonwinger/atom,Austen-G/BlockBuilder,bcoe/atom,omarhuanca/atom,Huaraz2/atom,brettle/atom,yalexx/atom,crazyquark/atom,dannyflax/atom,liuxiong332/atom,bolinfest/atom,ppamorim/atom,daxlab/atom,atom/atom,yangchenghu/atom,splodingsocks/atom,pengshp/atom,isghe/atom,lovesnow/atom,nrodriguez13/atom,YunchengLiao/atom,transcranial/atom,synaptek/atom,svanharmelen/atom,kittens/atom,medovob/atom,scippio/atom,G-Baby/atom,mertkahyaoglu/atom,synaptek/atom,isghe/atom,stuartquin/atom,john-kelly/atom