[Makefile] Fixed default environment variable checking