corrects ${BUILD_DIR}/lib check