fix install null pkgs in /tmp