Set client mode before loading realClient so configs can access it

Fixes #263.