read_etc_network_interfaces: improved parsing