Improved Makefile

1, Changed the way Dirs were checked.
2, Fixed the problem of recreating executables file unnecessarily.
3, Added debug flags for debug target building.