If there is no initialized config directory when triggering afterInit events, avoiding RecursiveDirectoryIterator exception.