build: rework rules for things in the tools dir