Cb-7904: Pull request for nightlys

you should use writeFileSync if you depend on this file anywhere below.