use pure erlang function to judge the erlang version, no shell.
Merge pull request #2530 from qingliangcn/master

use pure erlang function to judge the erlang version, no shell.
Ensure type_to_signature works for all AST variables