build script: Fix CRITICAL mistakes and typos