Problem: NameError: global name 'arg' is not defined
S3cmd:   1.1.0-beta3

Traceback (most recent call last):
  File "/usr/bin/s3cmd", line 1800, in <module>
    main()
  File "/usr/bin/s3cmd", line 1741, in main
    cmd_func(args)
  File "/usr/bin/s3cmd", line 965, in cmd_sync
    return cmd_sync_local2remote(args)
  File "/usr/bin/s3cmd", line 955, in cmd_sync_local2remote
    result = cf.InvalidateObjects(uri, uploaded_objects_list)
  File "/usr/share/s3cmd/S3/CloudFront.py", line 428, in InvalidateObjects
    cfuri = self.get_dist_name_for_bucket(uri)
  File "/usr/share/s3cmd/S3/CloudFront.py", line 566, in get_dist_name_for_bucket
    raise ParameterError("Unable to translate S3 URI to CloudFront distribution name: %s" % arg)
NameError: global name 'arg' is not defined