command/build: try to fix EEXIST error when cortex build; #407