Reads environment variables using Groovy style.
Reads signing password from DCR_SIGNING_PASSWORD environment variable.
Reads Sonatype (Maven repository) credentials from environment
variables.
Extracts M2_HOME check into function.