Fix bug #68335: rmdir doesnt work with file:// stream wrapper