command/build: upgrade to new read-cortex-json; #427