Only set KRE_PACKAGES for child processes
Fix a bug: four frameworks reuse the same output dir without cleaning