Improves error output and excludes all .git directories