When a user selects a Titanium SDK path in the preference page, we don't allow a path that has no Titanium SDK in it.
A better behavior would be:
- Allow an arbitrary directory selection.
- Prompt the user that the Titanium SDK will be downloaded into the new location (in case it's missing an SDK).
- In case a directory creation is needed, we'll do that before the preference dialog is closed (on apply/ok). This will clear any permission issues with the selected path before the SDK is downloaded.
- If everything is OK with the new location, start the SDK update process into the new path.