Fix string comparison to work with sh

Change-Id: I8f85afcde0c953ba175410257485a7a68f892cff
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/tools/license_scan.sh b/tools/license_scan.sh
index 3295600..47106e0 100755
--- a/tools/license_scan.sh
+++ b/tools/license_scan.sh
@@ -33,7 +33,8 @@
     if [ -f $file ]; then
         if [ -s $file ]; then
             license=$(wget -qO - --post-file $file https://osm.etsi.org/fossology/?mod=agent_nomos_once |sed "s/^[ \t]*//;s/[ \t]*$//")
-            if [[ $license =~ $RE ]]; then
+            result=$(echo $license | grep "$RE")
+            if [ -n "$result" ]; then
                 # possibly we have exceeded the post rate
                 sleep 10
                 license=$(wget -qO - --post-file $file https://osm.etsi.org/fossology/?mod=agent_nomos_once |sed "s/^[ \t]*//;s/[ \t]*$//")