Add test in case we add the same folder twice or more for add directories method and fix it
Merge pull request #162 from vonglasow/master

Adding same path more than once for one namespace, thanks to @avonglasow !