delete old files that have been replaced by a directory
delete old files that have been replaced by a directory

Fixes #417.
Replaces #1086, more logical code.

tamouse/jekyll,gynter/jekyll,christophermanning/jekyll,MjAbuz/jekyll,princeofdarkness76/jekyll,tomasdiez/jekyll,tamouse/jekyll,rajrathore/jekyll,mnuessler/jekyll,cyberid41/jekyll,harrissoerja/jekyll,supriyantomaftuh/jekyll,alex-kovac/jekyll,MauroMrod/jekyll,schaazzz/jekyll,drobati/jekyll,stomar/jekyll,AaronSikes/jekyll,ducktyper/jekyll,jekyll/jekyll,shliujing/jekyll,isathish/jekyll,AnanthaRajuC/jekyll,rovrevik/jekyll,tareq-s/jekyll,sferik/jekyll,mnuessler/jekyll,ducktyper/jekyll,mixxmac/jekyll,winndows/jekyll,xtymichael/jekyll,rongl/jekyll,ewinkler/jekyll,xiongjungit/jekyll,1gitGrey/jekyll,mnuessler/jekyll,bsmr-ruby/jekyll,Strangehill/jekyll,sanxore/sanxore.github.com,nemotan/jekyll,chrisfinazzo/jekyll,rlugojr/jekyll,krishnakalyan3/jekyll,rasa2011/rasa2011.github.io,likong/jekyll,Tiger66639/jekyll,angeliaz/jekyll,AnanthaRajuC/jekyll,tillgrallert/jekyll,liukaijv/jekyll,0x00evil/jekyll,imaustink/jekyll,aarvay/jekyll,akoeplinger/jekyll,drobati/jekyll,tobscure/jekyll,rlugojr/jekyll,tomasdiez/jekyll,shuber2/jekyll,MjAbuz/jekyll,stomar/jekyll,naughtyboy83/jekyll,wentixiaogege/jekyll,mrb/jekyll,doubleday/jekyll,aarvay/jekyll,rajrathore/jekyll,AnanthaRajuC/jekyll,m2candre/jekyll,kinlane/jekyll,noikiy/jekyll,abhilashhb/jekyll,FlyingWHR/jekyll,thetaxman/jekyll,kuangyeheng/jekyll,CorainChicago/jekyll,ZainRizvi/jekyll,LeuisKen/jekyllcn,stevecrozz/jekyll,tomasdiez/jekyll,ZDroid/jekyll,kuangyeheng/jekyll,brint/jekyll,Teino1978-Corp/Teino1978-Corp-jekyll,eninya/jekyll,alihalabyah/jekyll,floydpraveen/jekyll,gencer/jekyll,julienbourdeau/jekyll,eninya/jekyll,Kinghack/kinghack.github.com,Teino1978-Corp/jekyll,Kinghack/kinghack.github.com,liukaijv/jekyll,wentixiaogege/jekyll,garvitr/jekyll,julienbourdeau/jekyll,chrisfinazzo/jekyll,Tyrion22/jekyll,ZainRizvi/jekyll,doubleday/jekyll,alihalabyah/jekyll,brint/jekyll,matuzo/jekyll,leichunxin/jekyll,dansef/jekyll,marrujoalex/jekyll,rebornix/jekyll,codeclimate-testing/jekyll,marrujoalex/jekyll,ewinkler/jekyll,nickg33/jekyll,Strangehill/jekyll,tylermachen/jekyll,ryanshaw/jekyll,ryanshaw/jekyll,desidude03/jekyll,ls2uper/jekyll,johnnycastilho/jekyll,matuzo/jekyll,EddieDow/jekyll,digideskio/jekyll,0x00evil/jekyll,floydpraveen/jekyll,CheekyFE/jekyll,yihangho/jekyll,pheuko/jekyll,liukaijv/jekyll,imaustink/jekyll,isathish/jekyll,ZainRizvi/jekyll,vidbina/jekyll,princeofdarkness76/jekyll,rajrathore/jekyll,thejameskyle/jekyll,richsoni/jekyll,bsmr-ruby/jekyll,penchan1218/jekyllcn,jeffkole/jekyll,martynbm/jekyll,stomar/jekyll,vidbina/jekyll,lazycai/lazycai.github.com,ajhit406/jekyll,lazycai/lazycai.github.com,tomjohnson1492/jekyll,daniel-beck/jekyll,LuoPX-15510486969/jekyll,hiteshsuthar/jekyll,gaosboy/jekyll,tobscure/jekyll,doubleday/jekyll,rlugojr/jekyll,nateberkopec/jekyll,royalwang/jekyll,stomar/jekyll,adilapapaya/jekyll,sanxore/sanxore.github.com,krahman/jekyll,hiteshsuthar/jekyll,jmknoll/jekyll,larryfox/jekyll,CorainChicago/jekyll,htmelvis/jekyll,anthonyrosengren/grasshoppergathering2.github-io,wadaries/jekyll,rlugojr/jekyll,Tiger66639/jekyll,nemotan/jekyll,martynbm/jekyll,chinayin/jekyll,stevecrozz/jekyll,tugberkugurlu/jekyll,kimeng/jekyll,christophermanning/jekyll,Kinghack/kinghack.github.com,fulldecent/jekyll,kinlane/jekyll,royalwang/jekyll,QuinntyneBrown/jekyll,honger05/jekyllcn,saitodisse/jekyll,gynter/jekyll,sideci-sample/sideci-sample-jekyll,likong/jekyll,x-way/jekyll,noikiy/jekyll,nasht00/jekyll,iRoxx/jekyll,gencer/jekyll,CheekyFE/jekyll,sideci-sample/sideci-sample-jekyll,18F/jekyll,johnnycastilho/jekyll,xantage/jekyll,floydpraveen/jekyll,tomjohnson1492/jekyll,digideskio/jekyll,cyberid41/jekyll,Teino1978-Corp/Teino1978-Corp-jekyll,darwin/jekyll,x-way/jekyll,goodtouch/jekyll,fabulousu/jekyll,royalwang/jekyll,tillgrallert/jekyll,yihangho/jekyll,chrisfinazzo/jekyll,darwin/jekyll,teju111/jekyll,howkj1/jekyll,rebornix/jekyll,oresmus/jekyll,anthonyrosengren/grasshoppergathering2.github-io,fengsmith/jekyllcn,princeofdarkness76/jekyll,ajhit406/jekyll,akoeplinger/jekyll,dezon/jekyll,jmptrader/jekyll,vcgato29/jekyll,greent2008/jekyll,shuber2/jekyll,xiebinhqy/jklly_china,leichunxin/jekyll,SQS2/Test,ajhit406/jekyll,SQS2/Test,anthonyrosengren/grasshoppergathering2.github-io,rongl/jekyll,cyberid41/jekyll,AtekiRyu/jekyll,johnnycastilho/jekyll,gencer/jekyll,stevecrozz/jekyll,harrissoerja/jekyll,goragod/jekyll,ryanshaw/jekyll,getandpost/jekyll.github.io,dansef/jekyll,eloyesp/jekyll,greent2008/jekyll,ReachingOut/jekyll,SQS2/Test,teju111/jekyll,imaustink/jekyll,eninya/jekyll,zsyed91/jekyll,chiyodad/jekyll,pmarsceill/jekyll,gkunwar/gkunwar.github.io,likong/jekyll,dangaute/eng,Teino1978-Corp/jekyll,jmknoll/jekyll,pmarsceill/jekyll,chiyodad/jekyll,PepSalehi/jekyll,krishnakalyan3/jekyll,rovrevik/jekyll,fengsmith/jekyllcn,nasht00/jekyll,tomjohnson1492/jekyll,jeffkole/jekyll,ducktyper/jekyll,gencer/jekyll,CPVPLachlan/CPVP-Blog,brint/jekyll,xtymichael/jekyll,harrissoerja/jekyll,supriyantomaftuh/jekyll,18F/jekyll,AtekiRyu/jekyll,gkunwar/gkunwar.github.io,QuinntyneBrown/jekyll,chiyodad/jekyll,ls2uper/jekyll,Strangehill/jekyll,alex-kovac/jekyll,ramoslin02/jekyll,teju111/jekyll,gaosboy/jekyll,Strangehill/jekyll,tobscure/jekyll,xiebinhqy/jklly_china,shliujing/jekyll,fabulousu/jekyll,tareq-s/jekyll,eloyesp/jekyll,zsyed91/jekyll,mrb/jekyll,superve/jekyll,rasa2011/rasa2011.github.io,tylermachen/jekyll,jmptrader/jekyll,Strangehill/jekyll,thejameskyle/jekyll,yihangho/jekyll,wadaries/jekyll,lcustodio/lcustodio.github.io_base,hubsaysnuaa/jekyll,tamouse/jekyll,supriyantomaftuh/jekyll,indraj/jekyll,larryfox/jekyll,krahman/jekyll,jmepg/jekyll,bsmr-ruby/jekyll,floydpraveen/jekyll,nathanhorrigan1/webdeveloper,fabulousu/jekyll,Teino1978-Corp/jekyll,abhilashhb/jekyll,lcustodio/lcustodio.github.io_base,adilapapaya/jekyll,xiebinhqy/jklly_china,Tiger66639/jekyll,getandpost/jekyll.github.io,tillgrallert/jekyll,mrb/jekyll,vcgato29/jekyll,iRoxx/jekyll,nfagerlund/jekyll,jekyll/jekyll,pheuko/jekyll,richsoni/jekyll,LuoPX-15510486969/jekyll,xtymichael/jekyll,abhilashhb/jekyll,x-way/jekyll,MauroMrod/jekyll,derekgottlieb/jekyll,wadaries/jekyll,mrb/jekyll,hubsaysnuaa/jekyll,lcustodio/lcustodio.github.io_base,alfredxing/jekyll,MauroMrod/jekyll,ZDroid/jekyll,sasongkojati/jekyll,oresmus/jekyll,xiongjungit/jekyll,jaroot32/jekyll,Wirachmat/jekyll,MjAbuz/jekyll,jaybe-jekyll/jekyll,garvitr/jekyll,nfagerlund/jekyll,CPVPLachlan/CPVP-Blog,jmhardison/jekyll,mixxmac/jekyll,ajhit406/jekyll,digideskio/jekyll,garvitr/jekyll,jaroot32/jekyll,tomjohnson1492/jekyll,angeliaz/jekyll,nickg33/jekyll,nemotan/jekyll,tugberkugurlu/jekyll,thejameskyle/jekyll,tillgrallert/jekyll,mixxmac/jekyll,derekgottlieb/jekyll,vidbina/jekyll,sanxore/sanxore.github.com,darwin/jekyll,ReachingOut/jekyll,LuoPX-15510486969/jekyll,ZDroid/jekyll,derekgottlieb/jekyll,omeripek/jekyll,hartmel/jekyll,jmhardison/jekyll,ramoslin02/jekyll,x-way/jekyll,fulldecent/jekyll,xantage/jekyll,jmhardison/jekyll,xiaoshaozi52/jekyll,superve/jekyll,shliujing/jekyll,hubsaysnuaa/jekyll,indraj/jekyll,zhangkuaiji/jekyllcn,princeofdarkness76/jekyll,xiaoshaozi52/jekyll,QuinntyneBrown/jekyll,nateberkopec/jekyll,jekyll/jekyll,superve/jekyll,shuber2/jekyll,xcatliu/jekyllcn,UniFreak/jekyllcn,saitodisse/jekyll,tomjohnson1492/jekyll,dezon/jekyll,alfredxing/jekyll,AaronSikes/jekyll,honger05/jekyllcn,foocoder/jekyll,krishnakalyan3/jekyll,gynter/jekyll,pmarsceill/jekyll,backendeveloper/jekyll,desidude03/jekyll,christophermanning/jekyll,monxim/monxim.github.io,jaybe-jekyll/jekyll,CPVPLachlan/CPVP-Blog,jeffkole/jekyll,zhangkuaiji/jekyllcn,sasongkojati/jekyll,sferik/jekyll,fengsmith/jekyll,xantage/jekyll,hartmel/jekyll,codeclimate-testing/jekyll,hartmel/jekyll,tylermachen/jekyll,kimeng/jekyll,nasht00/jekyll,rovrevik/jekyll,getandpost/jekyll.github.io,alex-kovac/jekyll,alex-kovac/jekyll,egobrightan/jekyll,oresmus/jekyll,trungvothanh/jekyll,nateberkopec/jekyll,xiaoshaozi52/jekyll,winndows/jekyll,penchan1218/jekyllcn,aarvay/jekyll,tareq-s/jekyll,tugberkugurlu/jekyll,adilapapaya/jekyll,winndows/jekyll,1gitGrey/jekyll,vcgato29/jekyll,xcatliu/jekyllcn,zhangkuaiji/jekyllcn,fulldecent/jekyll,jmepg/jekyll,eloyesp/jekyll,xiebinhqy/jklly_china,nickg33/jekyll,trungvothanh/jekyll,zsyed91/jekyll,alex-kovac/jekyll,alfredxing/jekyll,lazycai/lazycai.github.com,foocoder/jekyll,jaroot32/jekyll,backendeveloper/jekyll,UniFreak/jekyllcn,jmptrader/jekyll,angeliaz/jekyll,PepSalehi/jekyll,alihalabyah/jekyll,lazycai/lazycai.github.com,m2candre/jekyll,AtekiRyu/jekyll,bsmr-ruby/jekyll,larryfox/jekyll,ryanshaw/jekyll,htmelvis/jekyll,nasht00/jekyll,EddieDow/jekyll,daniel-beck/jekyll,iRoxx/jekyll,hiteshsuthar/jekyll,indraj/jekyll,LeuisKen/jekyllcn,Teino1978-Corp/Teino1978-Corp-jekyll,foocoder/jekyll,sasongkojati/jekyll,fengsmith/jekyllcn,egobrightan/jekyll,yhironaka/yhironaka.github.io,trungvothanh/jekyll,saitodisse/jekyll,FlyingWHR/jekyll,omeripek/jekyll,chinayin/jekyll,egobrightan/jekyll,18F/jekyll,nathanhorrigan1/webdeveloper,martynbm/jekyll,fulldecent/jekyll,fengsmith/jekyll,matuzo/jekyll,marrujoalex/jekyll,goragod/jekyll,penchan1218/jekyllcn,goragod/jekyll,richsoni/jekyll,howkj1/jekyll,ReachingOut/jekyll,codeclimate-testing/jekyll,jaybe-jekyll/jekyll,jmknoll/jekyll,CorainChicago/jekyll,xiongjungit/jekyll,UniFreak/jekyllcn,wentixiaogege/jekyll,brint/jekyll,jmepg/jekyll,fengsmith/jekyll,thetaxman/jekyll,dansef/jekyll,gencer/jekyll,desidude03/jekyll,LeuisKen/jekyllcn,drobati/jekyll,Tyrion22/jekyll,rasa2011/rasa2011.github.io,noikiy/jekyll,isathish/jekyll,kimeng/jekyll,tillgrallert/jekyll,daniel-beck/jekyll,xcatliu/jekyllcn,jeffkole/jekyll,gaosboy/jekyll,schaazzz/jekyll,AaronSikes/jekyll,kuangyeheng/jekyll,chrisfinazzo/jekyll,htmelvis/jekyll,monxim/monxim.github.io,honger05/jekyllcn,PepSalehi/jekyll,pheuko/jekyll,nathanhorrigan1/webdeveloper,Tyrion22/jekyll,FlyingWHR/jekyll,jekyll/jekyll,krahman/jekyll,ls2uper/jekyll,howkj1/jekyll,leichunxin/jekyll,ramoslin02/jekyll,thetaxman/jekyll,gkunwar/gkunwar.github.io,naughtyboy83/jekyll,Wirachmat/jekyll,xcatliu/jekyllcn,EddieDow/jekyll,ewinkler/jekyll,0x00evil/jekyll,naughtyboy83/jekyll,rebornix/jekyll,goodtouch/jekyll,pmarsceill/jekyll,alfredxing/jekyll,darwin/jekyll,zsyed91/jekyll,backendeveloper/jekyll,noikiy/jekyll,rongl/jekyll,m2candre/jekyll,dangaute/eng,CheekyFE/jekyll,omeripek/jekyll,chinayin/jekyll,dezon/jekyll,Wirachmat/jekyll,schaazzz/jekyll,julienbourdeau/jekyll,derekgottlieb/jekyll,greent2008/jekyll,dangaute/eng,jaybe-jekyll/jekyll