Centralize --em-config handling.

Per request of Alon.