fixed rmdir for WebDAV by adding trailing slash to the path.