Fixed path normalization to prevent dot dirs

Fixes #5945 where stat(.) would cause the backend OC to cache a dot dir
(only in older versions)
Merge pull request #5970 from owncloud/extstorage-webdavdotdirfix

Fixed path normalization to prevent dot dirs