fix up build scripts and add NOLOKI updater