tool: fix BASE_DIR in build.conf
fix tool path in Makefiles