fix makefile directory creation bug