update build script and .gitignore