templates / branches--on commit path.c: refactor relative_path(), not only strip prefix (e02ca72)
   1: this is just to ensure the directory exists.