Allow use of parent setting, and fix the directory deduping.
Merge pull request #4 from adam-vessey/7.x

Allow use of parent setting, and fix the directory deduping.