command/build: fixes a EEXIST exception when cortex build;