Handle removed directories in z()