Php directory manager with DirectoryIterator function