Strip trailing slashes before case sensitive checking
Strip trailing slashes before case sensitive checking

Strip trailing slashes. Otherwise the last pathname component might be empty
vuolter/pyload,vuolter/pyload,vuolter/pyload