Fix Fedora

This fixes hostname setting in Fedora, and also includes the network fix from #3207