[FIX] correctly evaluate grep's output