Use `ip` instead of unavailable `ifconfig`

Extract default value for `$IP` using `ip` instead of `ifconfig` (unavailable in `stackbrew/ubuntu:12.04` image)

Fixes issue #50.
Merge pull request #51 from grossws/patch-1

Use `ip` instead of unavailable `ifconfig`