Match host packages against short and full hostname.