Replaced RecursiveDirectoryIterator

Replaced it by a custom recursive solution as RecursiveDirectoryIterator
will throw errors if there are restricted folders in a tree. I found no
way to handle this correctly