Simplify server mode detection.