Remove some unneeded dollar signs in aritmethic comparisons.
Minor optimisation while retrieving local IP addresses.