Fix the apm.cmd on Windows.