Fix qt_internal_get_wayland_*_dir for standalone parts in superbuild


`QT_BUILD_DIR` was expanding to the standalone build directory which
does not have the qtbase installed files.

Pick-to: 6.10
Change-Id: I874b92414adc3b03cf64f4e6d3dd1c0c694c70aa
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
commitc258d5cb0a42b32e935df1cd142be9457dc050c8
parent80225f077166b7a1d20145b2b153f2f6184d513c
authorCristian Le <cristian.le@qt.io>
committerCristian Le <cristian.le@qt.io>
commit timeMon, 2 Jun 2025 11:04:45 +0200