Fix filename length bug in template workflow.