Only ignore the build directory in the same directory as .gitignore for Gradle
If you have a Java package with build in it, the current version will always ignore files in that directory.
This change makes it so only the root "build" directory is ignored.
I believe that this assumes .gitignore is in the root of a project.