Fix more issues with the build atrifact script