Fix build of onos target in bazel on Jenkins

Change-Id: Ie563241d96e367ee927433dfe51f3deaac9f801e
diff --git a/tools/package/onos-prep-karaf b/tools/package/onos-prep-karaf
index b1361e8..1cc21e2 100755
--- a/tools/package/onos-prep-karaf
+++ b/tools/package/onos-prep-karaf
@@ -36,6 +36,10 @@
 
 # Patch-in proper Karaf version into the startup script
 sed -i.bk "s/apache-karaf-\$KARAF_VERSION/$KARAF_DIR/g" $SANDBOX/bin/onos-service
+
+# hack - need to break the link to the script in the source tree for bazel
+sed -i.bk "s/apache-karaf-\$KARAF_VERSION/$KARAF_DIR/g" $SANDBOX/bin/onos
+
 rm -f bin/*.bk
 chmod a+x $SANDBOX/bin/onos-service $SANDBOX/bin/onos