templates / branches--on commit t9300: factor out portable "head -c" replacement (4886081)
   1: this is just to ensure the directory exists.