Added dependency checking to Plugin Manager.