[ticket/12273] Do not look in extensions docs/ and tests/ directory

PHPBB3-12273
[ticket/12273] Find events.md relative from the path not the phpbb root

PHPBB3-12273