CoreContext: Fix IsThisHost

IsThisHost can be called with a hostname, and not just an address as the arguments’ name suggest

(cherry picked from commit feb2ddd5ff2ca37efdd05257ee8b725b25f6a183)
metadata: do not use script name for artwork file name

Clear inetref from the script name.

(cherry picked from commit ee7470d8bc0b843b80d13f4d9d92a6c3b06c3b2b)