Use ruby grep to avoid forking