Preserve directory structure when copying files