If rename to temp folder fails, do copy and delete.