Bugfix for root permission with empty S3 prefix and no metadata