Only global ignore dist and build in root.

In some cases a repository may require another project's dist or
build directory. So the ignoring of dist / build should only be
for the root folder. It will be up to the projects themselves
whether they want to ignore internal dist / build directories.