Ensure the correct shell is used (not the case for instance when it is
called from Configuration dialog)
BS-9906: Handle the case of opening Portal and the default configuration
is not the local one.