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

it has test with r15b03 r16b02 17.1