Various fixes for on FreeBSD when jailname and hostname for the jail differ. This gets jail-level metrics working (e.g. CPU)