Added a alternative way to check the required plugins.