Fixed app startup logic to find correct xia host.