config/module: don't walk dst when dst is in src

Fixes #518