Fixed gitignore definition of build output directories

The current gitignore definition for target and build folders only works for the top level folder.  This pull request fixes it so that target and build folders are ignored within all subdirectories.  This change is important for developers using Maven.