Delete files that became directories

If `/foo` is created, uploaded to S3, then deleted and replaced by a directory containing `/foo/index.html`, `/foo` should be deleted on S3.