Fix regression in passAsFile
Fix regression in passAsFile

Caused by 8063fc497ab78fa72962b93874fe25dcca2b55ed. If tmpDir !=
tmpDirInSandbox (typically when there are multiple concurrent builds
with the same name), the *Path attribute would not point to an
existing file. This caused Nixpkgs' writeTextFile to write an empty
file. In particular this showed up as hanging VM builds (because it
would run an empty run-nixos-vm script and then wait for it to finish
booting).

garbas/nix,garbas/nix,vcunat/nix,layus/nix,dezgeg/nix,NixOS/nix,peti/nix,layus/nix,dezgeg/nix,shlevy/nix,zimbatm/nix,dezgeg/nix,wmertens/nix,peti/nix,dtzWill/nix,vcunat/nix,bennofs/nix,ehmry/nix,wmertens/nix,rycee/nix,dtzWill/nix,pikajude/nix,ysangkok/nix,vcunat/nix,dtzWill/nix,garbas/nix,rycee/nix,wmertens/nix,bennofs/nix,NixOS/nix,peti/nix,shlevy/nix,shlevy/nix,dtzWill/nix,ehmry/nix,dezgeg/nix,ehmry/nix,bennofs/nix,peti/nix,NixOS/nix,layus/nix,ttuegel/nix,ehmry/nix,zimbatm/nix,layus/nix,ttuegel/nix,ehmry/nix,rycee/nix,ehmry/nix,wmertens/nix,ttuegel/nix,dtzWill/nix,zimbatm/nix,peti/nix,shlevy/nix,garbas/nix,garbas/nix,shlevy/nix,ttuegel/nix,rycee/nix,vcunat/nix,NixOS/nix,zimbatm/nix,ysangkok/nix,ysangkok/nix,pikajude/nix,bennofs/nix,NixOS/nix,rycee/nix,dezgeg/nix,layus/nix,pikajude/nix