When using remote_copy, split the destination using rpartition instead of iter