diff --git a/conda/clean-betas.py b/conda/clean-betas.py
index 75a09e9f5e7aa547df32e7b04e9c8e8d26019e9c..0c0caf67e1cb257ffea74e44a4ba9e01eb0f2a55 100755
--- a/conda/clean-betas.py
+++ b/conda/clean-betas.py
@@ -17,9 +17,11 @@ def main(scandir, dry_run):
       if f.startswith('.'): continue
       if not f.endswith('.tar.bz2'): continue
       name, version, build_string = f[:-8].rsplit('-', 2)
-      build = build_string.rsplit('_')[-1]
+      hash_, build = build_string.rsplit('_')
+      pyver, _ = hash_.rsplit('h', 1)
 
       name = os.path.basename(path) + '/' + name
+      if pyver: name += '/' + pyver
       target = os.path.join(path, f)
       betas.setdefault(name, []).append((
         StrictVersion(version),
@@ -39,9 +41,9 @@ def main(scandir, dry_run):
     keep_version, keep_build, _, _ = sorted_packages[-1]
     for version, build, mtime, path in sorted_packages:
       if version == keep_version and build == keep_build:
-        print('[keep] %s (%u)' % (path, mtime))
+        print('[keep] %s (time=%u)' % (path, mtime))
       else:
-        print('remove %s (%u)' % (path, mtime))
+        print('remove %s (time=%u)' % (path, mtime))
         if not dry_run: os.unlink(path)