Don't blame yourself, it's a mess. I'm not quite a neckbeard myself. :)
The script is supposed to pull and build the engine, not err. But since it looks like you'll be switching to Mint anyway, I guess there's no immediate hurry to solve it, and I'll just assume you can simply unpack on your new platform.