handle the case where the download directory is on a different filesystem
When the addon module and the download target directory are not
on the same filesystem, the rename operation will fails. This patch
fixes the issue by trying to copy and delete in this case.