Prevent double wrapping directories in MockDirectoryWrapper