Set maven.home property based on M2_HOME variable.
Clean up code. Remove comment lines.