Trim directory key suffix "/" as well as "_$folder$". The AWS Console uses
"/", while thirdparty tools like S3fox, 3Hub and NativeS3FileSystem.
Sort entries after trimming "_$folder$" suffixes.