fix --legacy-kast in RunProcess