Checking for valid CONFIG value in Makefile