Remove registerDirs call from loader