fix build-script exit status