Fix bug when copying individual files to user folder or packaging them for download.