Fixes for CentOS 7
This changes the command to retrieve network information to /sbin/ip which is more stable in output that ifconfig. It also sets the OS of the computer correctly when we are on CentOS 7. The latter check is basically hardcoded in the source, so not really future proof.