Distributed grep in Erlang