Fix some issues with replacing hostname in xmpp config.
Don't delete the ejabberd backup database if it fails to load.