Updated creation of apt repo from template file.