Try various locations of ifconfig, and safely abort if none are found

Addresses #1188.