Fix to unlink directories without an object on S3.