templates / branches--on commit attr: avoid heavy work when we know the specified attr is not defined (06a604e)
   1: this is just to ensure the directory exists.