Allow overriding cookie_domain based on system environment variable