Removing unused variable
Fixing MacOS/Linux conditional
Program now copes with ipconfig commands in the latest Mac OS X and Ubuntu/CentOS distributions