s3cmd's sync feature is great, but I'm getting this every time I sync one of my buckets to a local directory. I suspect this might be related to there being an empty directory in the bucket.

I am tracking svn trunk.

S3cmd:  0.9.9-pre1
Python: 2.5.2 (r252:60911, Jul 31 2008, 17:31:22)  [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]

Traceback (most recent call last):
  File "/usr/local/bin/s3cmd", line 1097, in <module>
    main()
  File "/usr/local/bin/s3cmd", line 1076, in main
    cmd_func(args)
  File "/usr/local/bin/s3cmd", line 679, in cmd_sync
    return cmd_sync_remote2local(src, dst)
  File "/usr/local/bin/s3cmd", line 524, in cmd_sync_remote2local
    try: dst_stream.close()
UnboundLocalError: local variable 'dst_stream' referenced before assignment