Update makefile

judge folder exist or not