check if M2_HOME or MAVEN_OPTS has already been set before setting. This allows overriding default and enables multiple versions on the one server