[ticket/11605] Use empty_dir to better delete files and dirs of extensions

http://tracker.phpbb.com/browse/PHPBB3-11605