Resolve #1, M2_HOME should be optional.