fix(write-files processor): wait for all the promises to finish