Fix filename length bug in template workflow.

Without this you get an error if any of your filenames have different lengths.