In the BuildSourceArchive function in source-archive-utils.js file, local toolkits gets added to the archive in the directory toolkits/${tk.tk} by the following line
toolkitPaths.forEach(tk => archive.directory(tk.tkPath, 'toolkits/${tk.tk}'));.
All the toolkits end up getting added to toolkits/undefined in the archive since tk has only the name and tkPath variables.
I think it can be fixed by changing tk.tk to tk.name.