@jdm
Avoid #12321 by creating environment before switching directories.
ee454f8