Fix #865: Inherit existing shell environment in external runners