command/build: fixes link direction; fixes #407