Clean up build script

The last commit was a proof of concept that worked. This improves it,
making it much easier to read and doesn't download CCC and NEI every
time you run the script for anything. Because seriously, why would you
want to do that?