fix regression around how plugin names are identified

This addresses the regression identified in https://github.com/grails/grails-maven/issues/43 

I added test dependencies on the spock framework to the pom to facilitate adding a simple unit test around the new method I was adding. 

This should also make it possible to add more unit tests to this plugin in the future.