Get correct hostname for ejabberd and jwchat, when run inside a chroot.
Merge pull request #17 from jvalleroy/fix-jwchat-hostname2

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