Added capacity for spawning directory-dependent external processes