fixed bug where we weren't waiting long enough for the file download to
finish, causing empty files to be copied to the download dir