templates / branches--on commit branch: use write_file_buf instead of write_file (7eb6e10)
   1: this is just to ensure the directory exists.