Do not include android and ios platforms in the default examples
Don't produce a JSON file containing "undefined". #2621

And correctly read the old settings before overriding them (should fix the
settings invalidation problem).