* automated/vc-tests.el (vc-test--register): Check, that the file
still exists after register and unregister operations.
* files.el (file-tree-walk): Use file-name-as-directory
unconditionally.