use pure erlang function to judge the erlang version, no shell function

it has been tested with r15b03 r16b02 17.1, all passed. sorry for the fault before.