Add dependency check for plugin loader