command/build: completes and fixes #386