build: Dependency scanning only on one level

Second time build would regenerate *.dep files from level further down. I.e.
when recursive build started, *.d files would already be generated, but
with dependency including the roots file-path, which is wrong.

Category: bugfix