fix fetched() when pkgs_dir does not exist