Set VSCMD_START_DIR to "%CD%" to prevent MSVS 2017 build scripts from changing the directory. See #18075.