Fix two bugs that prevented s3commander from working with an empty prefix.