make use of the copy file function
make use of the copy file function

Now we have specific function to copy the files, make use of it
and remove the old code.

Signed-off-by: Daniel Lezcano <3211518dd4d87cb3f7ee12cb52e14b7fb2bc0446@fr.ibm.com>

major/lxc,aeris/lxc,rldleblanc/lxc,glensc/lxc,smoser/lxc,abstrakraft/lxc-android-lxc,ysbnim/lxc,ecarrara/lxc,szaszg/lxc,yubo/lxc,hallyn/lxc,hallyn/lxc,ksperis/lxc,armcc/lxc,ss1h2a3tw/lxc,rowhit/lxc,lisongmin/lxc,efiop/lxc,cipriancraciun/lxc,codebauss/lxc,abstrakraft/lxc-android-lxc,federicobriata/lxc,bostjan/lxc,terceiro/lxc,ioops/lxc,usc-isi/lxc,ojkastl/lxc_Patches,JohnPeacockMessageSystems/lxc,usc-isi/lxc,fwilson42/lxc,GreatFruitOmsk/lxc,jirislaby/lxc,tych0/lxc,Pelagicore/lxc,potatosalad/lxc,inokappa/lxc,yubo/lxc,glensc/lxc,christiaan/lxc,jirislaby/lxc,fwilson42/lxc,hkjolhede/lxc,smoser/lxc,DarknessBeforeDawn/lxc,rowhit/lxc,caglar10ur/lxc,regit/lxc,bmoar/lxc,virajs/lxc,Distrotech/lxc,LynxChaus/lxc,lazy404/lxc,raspberrypython/lxc,weizhenwei/lxc,yubo/lxc,hfuCN/lxc,armcc/lxc,hfuCN/lxc,ksperis/lxc,ojkastl/lxc_Patches,cjwatson/lxc,hallyn/lxc,major/lxc,federicobriata/lxc,smoser/lxc,kylef/lxc,efiop/lxc,sapun/lxc,Pelagicore/lxc,potatosalad/lxc,caglar10ur/lxc,bostjan/lxc,ojkastl/lxc_Patches,cipriancraciun/lxc,JohnPeacockMessageSystems/lxc,ecarrara/lxc,Ponce/lxc,major/lxc,coconutpilot/lxc-gentoo-new,abstrakraft/lxc-android-lxc,ss1h2a3tw/lxc,hfuCN/lxc,ss1h2a3tw/lxc,weizhenwei/lxc,bmoar/lxc,ostap/lxc,LynxChaus/lxc,christiaan/lxc,aeris/lxc,abstrakraft/lxc-android-lxc,Pelagicore/lxc,lazy404/lxc,thmo/lxc,Distrotech/lxc,jirislaby/lxc,codebauss/lxc,terceiro/lxc,rldleblanc/lxc,ostap/lxc,thmo/lxc,codebauss/lxc,kylef/lxc,Ponce/lxc,usc-isi/lxc,GreatFruitOmsk/lxc,aeris/lxc,lisongmin/lxc,JohnPeacockMessageSystems/lxc,akshaykarle/lxc,cjwatson/lxc,QingweiPeterLan/cs188-lxc,christiaan/lxc,thmo/lxc,akshaykarle/lxc,hkjolhede/lxc,raspberrypython/lxc,virajs/lxc,Ponce/lxc,cjwatson/lxc,Distrotech/lxc,rldleblanc/lxc,weizhenwei/lxc,sapun/lxc,federicobriata/lxc,GreatFruitOmsk/lxc,armcc/lxc,DarknessBeforeDawn/lxc,lazy404/lxc,QingweiPeterLan/cs188-lxc,DarknessBeforeDawn/lxc,akshaykarle/lxc,ecarrara/lxc,coconutpilot/lxc-gentoo-new,smoser/lxc,inokappa/lxc,virajs/lxc,tych0/lxc,regit/lxc,ioops/lxc,terceiro/lxc,ysbnim/lxc,szaszg/lxc,regit/lxc,ysbnim/lxc,bostjan/lxc,sapun/lxc,szaszg/lxc,ojkastl/lxc_Patches,efiop/lxc,hkjolhede/lxc,lisongmin/lxc,QingweiPeterLan/cs188-lxc,LynxChaus/lxc,ioops/lxc,bmoar/lxc,tych0/lxc,glensc/lxc,fwilson42/lxc,caglar10ur/lxc,raspberrypython/lxc,rowhit/lxc,ksperis/lxc