Index: tools/xcw/bin/helenos-pkg-config
===================================================================
--- tools/xcw/bin/helenos-pkg-config	(revision e428becb1f92b5b4d8d6b10b19091c39ea1b79f9)
+++ tools/xcw/bin/helenos-pkg-config	(revision d548fc0e28b66bd85d62aea9c93bea619d7f4520)
@@ -33,8 +33,9 @@
 
 XCW="$(dirname "$0")"
-SRC_ROOT="$XCW/../../.."
+BUILD_ROOT="$(dirname "$(dirname "$(dirname "$XCW")")")"
 if [ -z "$EXPORT_DIR" ]; then
-	EXPORT_DIR="$SRC_ROOT/build/dist"
+	EXPORT_DIR="$BUILD_ROOT/export"
 fi
+
 INCLUDE_DIR="$EXPORT_DIR/include"
 LIB_DIR="$EXPORT_DIR/lib"
