Simplify special cases in LocalDirectory.list_files()
Fix content of local folder that ends with "/" with the root of an S3 bucket