Build.sh: optimization