[ticket/12325] Use \RecursiveDirectoryIterator

PHPBB3-12325