Updated build script to fix an error