[ticket/11491] Correctly remove the store/temp_ext/ directory after use

PHPBB3-11491
[ticket/11491] Only copy files from phpBB/ext/ the directory exists

PHPBB3-11491