Fixes for copying files.