Generates a local copy of the build-worker file to allow it to be loaded at runtime in a forked process. PR Close #40012