use first device for cur_ip rather than assume eth0

https://github.com/openshift/openshift-extras/pull/23