added mogenerator --v2 option (v1.28+ only);
removed /../../ from paths;
fixed template-path