[ticket/11618] Workaround glob returning false erroneously

PHPBB3-11618