build scripts fix