[Bug 57137] startlocal/endlocal changes CWD if pushd/popd are called before