fix install error when no "\r?\n\r?\n" pattern found in http downloaded file