Moved stuff out of build script and pre install.