[GHC] #9322: Modify readProcess[WithExitCode] to allow setting current directory