fileProvider: make some vars static, in an attempt to stabilize the file copying code. Didn't fix anything, of course.