Fixed CLOUDSTACK-6983: unable to register lxc template

added a check for tar.gz format in checktemplate