[feature/twig] Prevent errors from mkdir if the dir already exists

PHPBB3-11598