Unset imports from the config array, when they are no longer needed

To keep things more tight, I think we should unset the import directives, when files have been imported.