Modified ip_command for zsh compatibility

It works in both, bash and zsh.

The issue comes from tests done in Ubuntu 14.04 using zsh the original ip command returns a list of files in several lines, which works well with bash but zsh instead takes them as a single file so grep ends up returning a "No such file or directory" message.