now using Popen to parse ifconfig