SUBMARINE-88. rat.sh regex pattern not working issue while using lower version of grep in ubuntu16.04. Contributed by Zhankun Tang.

(cherry picked from commit 96d818a2f7a0cd62f252234ba1a27c8c70bfed1f)
diff --git a/hadoop-submarine/dev-support/checks/rat.sh b/hadoop-submarine/dev-support/checks/rat.sh
index ffead21..0e4a034 100755
--- a/hadoop-submarine/dev-support/checks/rat.sh
+++ b/hadoop-submarine/dev-support/checks/rat.sh
@@ -17,7 +17,7 @@
 mkdir -p target
 rm target/rat-aggregated.txt
 mvn apache-rat:check
-grep -r --include=rat.txt "\!\?\?\?\?" ./* | tee ./target/rat-aggregated.txt
+grep -r --include=rat.txt -E "\!\?\?\?\?" ./* | tee ./target/rat-aggregated.txt
 if [ "$(cat target/rat-aggregated.txt)" ]; then
    echo "Failed to pass apache rat check!"
    exit -1