Updated build script so that it builds correctly