cortex build will construct the real dir structure in .cortex