fix host checking for github