Fix the breakage caused by forcing PKG_BUILD_DIR change.