fix the makefile for assign BUILD_DIR