Fix empty basename.

If the basename of a file is empty, skip it.
Merge pull request #25 from ooda/fix-s3get

Fix empty basename.