Plugin check should check for extensions too

It is possible to subclass the "android" and "android-library" plugins.
Using "withType" instead of "hasPlugin" will match these plugins.