improve compatibility with s3fs