Use IO.copy_stream to copy the package to import.

I recently tried to import a package which always failed with an "Invalid Argument" error message. All other packages could be imported just fine. To fix this, I simply modified `retrieve_file_from_url` to use `IO.copy_stream`.