apps/cmp.c: Fix TLS hostname checking in case -server provides more than hostname