utils: use access instead of stat
utils: use access instead of stat

we shoud test whether the file exists and grants
execute permissions.

Signed-off-by: Long Wang <aff024fe4ab0fece4091de044c58c9ae4233383a@laoqinren.net>

thmo/lxc,federicobriata/lxc,hallyn/lxc,ss1h2a3tw/lxc,LynxChaus/lxc,thmo/lxc,caglar10ur/lxc,caglar10ur/lxc,thmo/lxc,ss1h2a3tw/lxc,hallyn/lxc,terceiro/lxc,hallyn/lxc,ss1h2a3tw/lxc,caglar10ur/lxc,aeris/lxc,federicobriata/lxc,aeris/lxc,terceiro/lxc,terceiro/lxc,federicobriata/lxc,aeris/lxc,LynxChaus/lxc,LynxChaus/lxc