Update to better detect the emulator.