templates / branches--on commit apply: handle filenames with double slashes better (33eb4dd)
   1: this is just to ensure the directory exists.