more fixes to Chief script around generate_files... part 2

hopefully the last time