HADOOP-11065. Rat check should exclude **/build/**. (kasha)

(cherry picked from commit 0571b4561bad7e0230920e52d3758a3658fcf20d)