Makefile: replace head call with grep's -m