Update .gitignore files to omit temporary build directories