Fix bug in build script.