Fix: "export-bc" command wasn't exporting valid JSON