Account for s3 paths not having a trailing slash

Fixes #552