check_4dir: fixes a bug where I forgot to check if stat(path, &sb) == 0