Correct some errors in build-custom.sh