lxcapi_create: fix template handling
lxcapi_create: fix template handling

1. If no template is passed in, then do not try to execute it.  The user
just wanted to write the configuration.

2. If template is passed in as a full path, then use that instead of
constructing '$templatedir/lxc-$template'.

Reported-by: Wanlong Gao <209b351814c2aa2d43085ca51a9830225b84821b@cn.fujitsu.com>
Signed-off-by: Serge Hallyn <3df611b026e4639bee8aef7a4beb2e39fcebb313@ubuntu.com>

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