Fix process spawn pgroup error on Windows