replace sed by grep in Makefile