fix bugs caused by unquoted variable(s); remove unnecessary grep in ips func
Merge pull request #375 from oxnz/master

fix bugs caused by unquoted variable(s); remove unnecessary grep in ips func