Fix automated.arch.sh bug and add exclude-dirs to sgrep.