Set destination directory in proper file_t instance in movefile()
This fixes the issue (#515) that was introduced 9 months ago
(after the v3.19b release) with commit 77d72d0e.
Also:
movefile() will now log an error message if addfile() fails.
Fix the message logged when the file is successfully moved.