[backend] another fix for import handling of excluded packages