Log Message: cmake: fix paths in build.mk so that BUILD_DIRS/INSTALL_DIRS/TEST_DIRS work as expected.