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

https://bugs.php.net/bug.php?id=68335