Update build script and .gitignore