Why duplication not follow path
I tried your file, and just after removing the parent in "object > relations" and selecting again "cube.004" in that listbox, the parent is better:



something didn't update correctly during some previous operation, maybe.

edit: ok, it is nearly the same even with the new file. 

this time, after re-applying the parent as above, you need to clear its origin.