Get correct hostname for ejabberd and jwchat, when run inside a chroot.