[ticket/12508] Use available ext path instead of generating it

PHPBB3-12508