need to basename for the grep for ignore_packages to work