Update funcs to not use /usr/bin/grep.