command/init: test for issue 518
config/module: don't walk dst when dst is in src

Fixes #518
command/init: use a more semantic name to identiy the test routine for issue 518
Merge pull request #547 from ceh/issue-518

Fix issue 518