git/gitignore: Only ignore `build' etc. if they're toplevel directories.