__open_directory_sync can sync the wrong directory if the application
specifies an absolute path name.  Close #801.