I have the same problem, and what I am finding is that Movefile will not replace an existing file. If it is being moved to a new filename then it works fine.
A potential workaround is to queue 2 movefile commands. 1st to delete the existing file, and 2nd to move the new file into place. However I am wary about doing this as I am not sure that the commands are run in sequence.