Working with Makefile directory checking