build scripts: correct directory
BUILD FIXES: initialize uninitialized variables and removed unused code