Fix unportable regexp in Makefile