core: copy all sub-directories in a box properly

This avoids an Errno::EACCES on windows, although I'm really unsure why.