templates / branches--on commit replace trivial malloc + sprintf / strcpy calls with xstrfmt (75faa45)
   1: this is just to ensure the directory exists.