fix for build.sh and release builds