Update configure test for new erlang version

The version format for Erlang/OTP is changing in the next
major release. This commit allows both the old (eg R16B01)
and new (eg 17.0-rc1) styles.

It also adds support for recognizing patched Erlang/OTP version
with the old scheme (eg R16B03-1).
Merge pull request #72 from garazdawi/develop

Update configure test for new erlang version