[gentoo][network] check if 'ip' cmd exists before using to flush old config