Added new setupdone flag in settings.template.
Minor installer fixes