Exclude the directories in .gitignore from clang-formatting
The run-clang-formatting.sh script excludes certain directories, but it does try the format files in for example the build subdirectory. This directory is in the .gitignore file. It seems sensible to exclude the directories that are ignored by git from formatting as well.