command/build: fixes build dir.dist; fixes #422