std.Build.RunStep: work around a miscompilation

See #14783

Also, set the cwd directory handle when spawning the child process if
available.
8b054e190aAndrew Kelley committed on 3/15/2023, 5:48:13 PMparent677a0e2
1 file changedLine totals unavailable