[ticket/12099] Deduplicate path generation

PHPBB3-12099
[ticket/12099] Prepend ./ to path to fix assets

PHPBB3-12099