pass directory down to get_ignored_packages