Fixes writing vhost to hosts file