added debug output to build script to find problem on TC