Add support for variable names in template destination filename