Fix module group accessor for resolved artifacts in calculateChecksums

This fixes an error with Gradle 2.+. Same fix as #3.