handle empty directory on S3 sync remote2local

We have to recognize when it's an empty directory (the filename ends
in a trailing /) and treat it specially.