Auto detective interpreter in fork mode, use extension name.

Changelog:

1. Fix a spelling mistake
2. Fix test case error in cli2
3. Auto detective interpreter in fork mode; add corresponding testcase
4. Trim tail whitespace

Cheers