Fix plugin dependency handling.