BUGFIX: Handle opening deleted directories