[makefile] Fix wrong test for Linux environment