[BUG #8053] Make the whole copy process cross-platform