Fix list_pkgs on Windows.