Charm helper version of ch-file
Use bash and the right variable names in the template