commands/write_template: remove extra '.'