split-merge script not properly merging to ESJSON format