Nginx: Use more reliable and simple config mode check/logic.