file-format/template-get: handle non-base filenames