Fix incorrect value for variable 'path'
Something like `{% set path = path + '/' + file %}` doesn't seem to
work because in Jinja2, because the variables set inside loops
don't seem to persist between iterations.
This approach works around that limitation.