Fixed the build script as I'm an idiot