templates / branches--on commit use xstrfmt to replace xmalloc + sprintf (2831018)
   1: this is just to ensure the directory exists.