Ensure that we don't archive to latest for branches of dev

We have had builds in the past that was based on dev releases for platform, e.g.:
https://r8.googlesource.com/r8/+/refs/heads/3.3.20-dev+aosp1
which we don't want to archive to latest.

Change-Id: I6e65199e823cd007f0ec302e58352e2f52400d40
diff --git a/tools/archive.py b/tools/archive.py
index 903caf6..20e69ae 100755
--- a/tools/archive.py
+++ b/tools/archive.py
@@ -333,7 +333,7 @@
                           GetMavenUrl(is_main))
 
             # Upload R8LIB to latest on dev channel, this is used by godbolt.
-            if file == utils.R8LIB_JAR and 'dev' in version:
+            if file == utils.R8LIB_JAR and version.endswith('-dev'):
                 latest_dst = GetUploadDestination('latest-dev', file_name,
                                                   is_main)
                 print('Uploading %s to %s' % (tagged_jar, latest_dst))