Fix upload.py logic for compressing non-time directories