Fix macos startup.

Reverse order of test (gROOT and gInterpreter) to avoid premature
initialization attempt.