[BUILD] Fix the use of TOOLCHAIN_DIR usage