Update erlang-extra.m4

Version number are not always of equal length. Added two clauses to fix this.