Win32: fix detection of empty directories in is_dir_empty