Generate _env.cmd file instead of bat file for consistency.