packer: make template compatible with recent packer versions