Update build.py to replace genereate.sh.