Adapt code for two releases in the restart networking command
Changing from detecting in the host to check the config to know the dist