Fix version parsing to use Maven standard method.