[ticket/11450] Use helpers to copy/remove files

PHPBB3-11450