Removing unused variable
Fixing MacOS/Linux conditional
Program now copes with ipconfig commands in the latest Mac OS X and Ubuntu/CentOS distributions
Fixing typo
Converting from tabs to spaces
Merge pull request #1 from cjwfuller/master

Changes to support latest Mac OS X and CentOS/Ubuntu distributions + bug fix