master: backport fix from the master branch
master: send file cache to workers