use package basename for aptitude hold
fix append vs extend for list