tests/build: Simplify clean-up dependencies