command/build: fixes directories.dist; #354