Fix dynamic import package filtering