ONOS-4439 bug fixes for security mode init scripts

Change-Id: I7ba5d3f092a84b5b43434677aff0219aee60adcf
diff --git a/tools/build/onos-package b/tools/build/onos-package
index e54cff3..471d25c 100755
--- a/tools/build/onos-package
+++ b/tools/build/onos-package
@@ -110,7 +110,7 @@
 
     mkdir -p $ONOS_STAGE/$KARAF_DIST/system/org/apache/felix/org.apache.felix.configadmin/1.6.0
     cp $FELIX_CFG_ADMIN $ONOS_STAGE/$KARAF_DIST/system/org/apache/felix/org.apache.felix.configadmin/1.6.0
-    perl -pi.old -e "s|org.apache.felix.configadmin/1.8.0|org.apache.felix.configadmin/1.6.0|g" \
+    perl -pi.old -e "s|^(.*org.apache.felix.configadmin.*)|mvn\\\\:org.apache.felix/org.apache.felix.configadmin/1.6.0 = 10|" \
         $ONOS_STAGE/$KARAF_DIST/etc/startup.properties
 
     # SM-ONOS step 2: stage ONOS Felix framework security (this is already done by karaf assembly); end