command/build: fixes a bug if neurons exists and is a folder, it will fail; fixes #384