Fix ips command

Seems to be broken without escaping the quotes on OSX 10.9 with bash 4.2.45.