Walk the directories to copy

Fixes #276
Merge pull request #277 from hroncok/walkdirs

Walk the directories to copy