#168: command/build: completely refractor cortex build; update version