templates / branches--on commit dir.c: factor out parts of last_exclude_matching for later reuse (46aa2f9)
   1: this is just to ensure the directory exists.