Fix backups on windows for the file resource
Fix backups on windows for the file resource

The backup utility was using Dir.[], which on breaks with \ in
the path name. This code is replaces with listing the directory and
matching the correct files

This should solve #3394.

skmichaelson/chef,ekometti/chef,MsysTechnologiesllc/chef,nicklv/chef,tomdoherty/chef,sekrett/chef,askl56/chef,mikefaille/chef,robmul/chef,Tensibai/chef,askl56/chef,webframp/chef,nguyen-tien-mulodo/chef,jkerry/chef,baberthal/chef,h4ck3rm1k3/chef,sanditiffin/chef,MichaelPereira/chef,karthikrev/chef,BackSlasher/chef,nalingarg2/chef-1,mal/chef,acaiafa/chef,mal/chef,mattray/chef,paulmooring/chef,smurawski/chef,kaznishi/chef,nguyen-tien-mulodo/chef,tbunnyman/chef,nsdavidson/chef,grubernaut/chef,ckaushik/chef,BackSlasher/chef,mal/chef,criteo-forks/chef,jimmymccrory/chef,jkerry/chef,clintoncwolfe/chef,higanworks/chef,adamleff/chef,sempervictus/chef,natewalck/chef,Igorshp/chef,cgvarela/chef,sometimesfood/chef,brettcave/chef,MichaelPereira/chef,higanworks/chef,ChaosCloud/chef,jblaine/chef,DeWaRs1206/chef,sometimesfood/chef,onlyhavecans/chef,Kast0rTr0y/chef,karthikrev/chef,ducthanh/chef,jkerry/chef,zuazo-forks/chef,webframp/chef,MsysTechnologiesllc/chef,ktpan/chef-play,Igorshp/chef,acaiafa/chef,mikefaille/chef,ccsplit/chef,youngjl1/chef,ducthanh/chef,nathwill/chef,acaiafa/chef,circleback/chef,jagdeesh109/chef,nellshamrell/chef,askl56/chef,ccsplit/chef,BackSlasher/chef,natewalck/chef,gsaslis/chef,malisettirammurthy/chef,aaron-lane/chef,nathwill/chef,jmhardison/chef,higanworks/chef,smurawski/chef,karthikrev/chef,criteo-forks/chef,Kast0rTr0y/chef,renanvicente/chef,mwrock/chef,acaiafa/chef,permyakovsv/chef,nellshamrell/chef,mattray/chef,zshuo/chef,zuazo-forks/chef,jagdeesh109/chef,jblaine/chef,custora/chef,patcon/chef,mio-g/chef,tas50/chef-1,zshuo/chef,renanvicente/chef,jonlives/chef,evan2645/chef,cachamber/chef,sekrett/chef,nicklv/chef,ranjib/chef,robmul/chef,ktpan/chef-play,zuazo-forks/chef,permyakovsv/chef,youngjl1/chef,Ppjet6/chef,sekrett/chef,sanditiffin/chef,tbriggs-curse/chef,erkolson/chef,martinb3/chef,lamont-granquist/chef,someara/chef,evan2645/chef,mikedodge04/chef,EasonYi/chef,josb/chef,Tensibai/chef,andrewpsp/chef,andrewpsp/chef,nsdavidson/chef,sanditiffin/chef,faspl/chef,clintoncwolfe/chef,ktpan/chef-play,nalingarg2/chef-1,ccsplit/chef,polamjag/chef,BackSlasher/chef,aaron-lane/chef,tas50/chef-1,malisettirammurthy/chef,antonifs/chef,clintoncwolfe/chef,malisettirammurthy/chef,tbriggs-curse/chef,patcon/chef,jk47/chef,ktpan/chef-play,zshuo/chef,martinisoft/chef,erkolson/chef,askl56/chef,tas50/chef-1,mio-g/chef,mikedodge04/chef,nicklv/chef,sempervictus/chef,sometimesfood/chef,DeWaRs1206/chef,cachamber/chef,baberthal/chef,gsaslis/chef,paulmooring/chef,nguyen-tien-mulodo/chef,nalingarg2/chef-1,sometimesfood/chef,tbunnyman/chef,faspl/chef,Ppjet6/chef,patcon/chef,docwhat/chef,nvwls/chef,robmul/chef,jkerry/chef,tbriggs-curse/chef,antonifs/chef,martinb3/chef,Ppjet6/chef,EasonYi/chef,grubernaut/chef,faspl/chef,mikedodge04/chef,ckaushik/chef,jblaine/chef,mio-g/chef,robmul/chef,b002368/chef-repo,kaznishi/chef,cachamber/chef,tomdoherty/chef,ckaushik/chef,josb/chef,jonlives/chef,ktpan/chef-play,circleback/chef,kaznishi/chef,nathwill/chef,nalingarg2/chef-1,Igorshp/chef,nicklv/chef,onlyhavecans/chef,grubernaut/chef,oclaussen/chef,mikefaille/chef,ckaushik/chef,OpSitters/chef,jaymzh/chef,nellshamrell/chef,jmhardison/chef,b002368/chef-repo,gsaslis/chef,natewalck/chef,natewalck/chef,mikedodge04/chef,natewalck/chef,jk47/chef,polamjag/chef,tbriggs-curse/chef,h4ck3rm1k3/chef,patcon/chef,zuazo-forks/chef,kaznishi/chef,karthikrev/chef,onlyhavecans/chef,criteo-forks/chef,ckaushik/chef,gene1wood/chef,gsaslis/chef,ranjib/chef,martinisoft/chef,tbunnyman/chef,martinb3/chef,AndyBoucher/Chef-Testing,josb/chef,ccsplit/chef,evan2645/chef,zuazo-forks/chef,Igorshp/chef,cachamber/chef,lamont-granquist/chef,someara/chef,mal/chef,onlyhavecans/chef,Tensibai/chef,mio-g/chef,ekometti/chef,onlyhavecans/chef,b002368/chef-repo,jagdeesh109/chef,jimmymccrory/chef,someara/chef,ccsplit/chef,aaron-lane/chef,tas50/chef-1,lamont-granquist/chef,nalingarg2/chef-1,3dinfluence/chef,faspl/chef,nvwls/chef,askl56/chef,nguyen-tien-mulodo/chef,ducthanh/chef,baberthal/chef,sekrett/chef,nicklv/chef,custora/chef,ccsplit/chef,permyakovsv/chef,jkerry/chef,erkolson/chef,circleback/chef,ranjib/chef,youngjl1/chef,DeWaRs1206/chef,nvwls/chef,robmul/chef,docwhat/chef,paulmooring/chef,Tensibai/chef,b002368/chef-repo,docwhat/chef,juliandunn/chef,jaymzh/chef,juliandunn/chef,jonlives/chef,nicklv/chef,gene1wood/chef,antonifs/chef,chef/chef,chef/chef,ducthanh/chef,gsaslis/chef,paulmooring/chef,mattray/chef,strangelittlemonkey/chef,AndyBoucher/Chef-Testing,sempervictus/chef,cgvarela/chef,mal/chef,sekrett/chef,nvwls/chef,skmichaelson/chef,faspl/chef,polamjag/chef,tbriggs-curse/chef,andrewpsp/chef,brettcave/chef,mio-g/chef,cachamber/chef,jk47/chef,jagdeesh109/chef,criteo-forks/chef,AndyBoucher/Chef-Testing,faspl/chef,docwhat/chef,nvwls/chef,malisettirammurthy/chef,ekometti/chef,nellshamrell/chef,permyakovsv/chef,MsysTechnologiesllc/chef,kaznishi/chef,renanvicente/chef,polamjag/chef,jblaine/chef,tomdoherty/chef,BackSlasher/chef,EasonYi/chef,jmhardison/chef,MichaelPereira/chef,higanworks/chef,jkerry/chef,EasonYi/chef,ekometti/chef,Igorshp/chef,aaron-lane/chef,custora/chef,cachamber/chef,Ppjet6/chef,juliandunn/chef,nguyen-tien-mulodo/chef,sometimesfood/chef,smurawski/chef,ChaosCloud/chef,tbriggs-curse/chef,mikedodge04/chef,ekometti/chef,paulmooring/chef,gene1wood/chef,OpSitters/chef,grubernaut/chef,evan2645/chef,adamleff/chef,renanvicente/chef,sempervictus/chef,cgvarela/chef,mattray/chef,antonifs/chef,mattray/chef,clintoncwolfe/chef,nathwill/chef,robmul/chef,tbunnyman/chef,sekrett/chef,juliandunn/chef,nathwill/chef,chef/chef,skmichaelson/chef,sempervictus/chef,AndyBoucher/Chef-Testing,martinisoft/chef,youngjl1/chef,webframp/chef,circleback/chef,evan2645/chef,martinb3/chef,ChaosCloud/chef,renanvicente/chef,patcon/chef,oclaussen/chef,erkolson/chef,strangelittlemonkey/chef,martinb3/chef,sempervictus/chef,MichaelPereira/chef,nellshamrell/chef,Ppjet6/chef,3dinfluence/chef,baberthal/chef,martinb3/chef,ktpan/chef-play,karthikrev/chef,Kast0rTr0y/chef,cgvarela/chef,brettcave/chef,smurawski/chef,ducthanh/chef,Kast0rTr0y/chef,zshuo/chef,chef/chef,someara/chef,tbunnyman/chef,sanditiffin/chef,acaiafa/chef,brettcave/chef,smurawski/chef,jaymzh/chef,renanvicente/chef,gene1wood/chef,circleback/chef,acaiafa/chef,adamleff/chef,youngjl1/chef,permyakovsv/chef,martinisoft/chef,DeWaRs1206/chef,docwhat/chef,natewalck/chef,josb/chef,ChaosCloud/chef,erkolson/chef,clintoncwolfe/chef,skmichaelson/chef,webframp/chef,custora/chef,andrewpsp/chef,polamjag/chef,permyakovsv/chef,martinisoft/chef,aaron-lane/chef,ekometti/chef,someara/chef,jonlives/chef,jmhardison/chef,custora/chef,zshuo/chef,h4ck3rm1k3/chef,nellshamrell/chef,EasonYi/chef,oclaussen/chef,3dinfluence/chef,baberthal/chef,ranjib/chef,MichaelPereira/chef,h4ck3rm1k3/chef,criteo-forks/chef,smurawski/chef,webframp/chef,malisettirammurthy/chef,circleback/chef,webframp/chef,strangelittlemonkey/chef,malisettirammurthy/chef,nalingarg2/chef-1,tomdoherty/chef,mikefaille/chef,h4ck3rm1k3/chef,zshuo/chef,grubernaut/chef,h4ck3rm1k3/chef,Tensibai/chef,ChaosCloud/chef,BackSlasher/chef,jk47/chef,brettcave/chef,AndyBoucher/Chef-Testing,mikefaille/chef,mal/chef,Kast0rTr0y/chef,gsaslis/chef,nguyen-tien-mulodo/chef,higanworks/chef,nsdavidson/chef,ranjib/chef,jblaine/chef,Ppjet6/chef,DeWaRs1206/chef,askl56/chef,skmichaelson/chef,nathwill/chef,jblaine/chef,3dinfluence/chef,adamleff/chef,someara/chef,MsysTechnologiesllc/chef,strangelittlemonkey/chef,jk47/chef,antonifs/chef,grubernaut/chef,youngjl1/chef,MichaelPereira/chef,jmhardison/chef,strangelittlemonkey/chef,mwrock/chef,antonifs/chef,polamjag/chef,lamont-granquist/chef,adamleff/chef,custora/chef,EasonYi/chef,jagdeesh109/chef,mikefaille/chef,paulmooring/chef,OpSitters/chef,jk47/chef,oclaussen/chef,josb/chef,aaron-lane/chef,jaymzh/chef,ckaushik/chef,baberthal/chef,karthikrev/chef,oclaussen/chef,b002368/chef-repo,tomdoherty/chef,clintoncwolfe/chef,nsdavidson/chef,josb/chef,OpSitters/chef,OpSitters/chef,juliandunn/chef,cgvarela/chef,docwhat/chef,ducthanh/chef,andrewpsp/chef,nvwls/chef,mio-g/chef,evan2645/chef,jimmymccrory/chef,oclaussen/chef,jonlives/chef,mwrock/chef,sanditiffin/chef,nsdavidson/chef,lamont-granquist/chef,strangelittlemonkey/chef,AndyBoucher/Chef-Testing,criteo-forks/chef,Kast0rTr0y/chef,mikedodge04/chef,adamleff/chef,jimmymccrory/chef,sometimesfood/chef,lamont-granquist/chef,mwrock/chef,andrewpsp/chef,3dinfluence/chef,jonlives/chef,Igorshp/chef,sanditiffin/chef,jmhardison/chef,zuazo-forks/chef,DeWaRs1206/chef,skmichaelson/chef,OpSitters/chef,brettcave/chef,ChaosCloud/chef,jimmymccrory/chef,jagdeesh109/chef,tbunnyman/chef,cgvarela/chef,ranjib/chef,patcon/chef,nsdavidson/chef,jimmymccrory/chef,3dinfluence/chef,onlyhavecans/chef,kaznishi/chef,b002368/chef-repo,erkolson/chef