support directoriesToIgnore in bundles