Fix scope of 'file.output' variable from Download target