[TIMOB-16186] Fixed bug when downloading a Titanium SDK from a web serve...

...r that does not return a content length header. Also fixed bugs where the SDK version cannot be determined.