treewide: use is_missing_file_error() where ENOENT and ENOTDIR are checked