CoreContext: Simplify use of IsThisHost, make it work with hostnames