Added check for templates.tar.gz